railo.transformer.bytecode.literal
Class LitString
java.lang.Object
railo.transformer.bytecode.expression.ExpressionBase
railo.transformer.bytecode.literal.LitString
- All Implemented Interfaces:
- Expression, ExprString, Literal
- Direct Known Subclasses:
- Identifier
public class LitString
- extends ExpressionBase
- implements Literal, ExprString
A Literal String
MAX_SIZE
public static final int MAX_SIZE
- See Also:
- Constant Field Values
TYPE_ORIGINAL
public static final int TYPE_ORIGINAL
- See Also:
- Constant Field Values
TYPE_UPPER
public static final int TYPE_UPPER
- See Also:
- Constant Field Values
TYPE_LOWER
public static final int TYPE_LOWER
- See Also:
- Constant Field Values
EMPTY
public static final LitString EMPTY
LitString
public LitString(String str,
Position start,
Position end)
- constructor of the class
- Parameters:
str
- line
-
toExprString
public static ExprString toExprString(String str,
Position start,
Position end)
toExprString
public static ExprString toExprString(String str)
toLitString
public static LitString toLitString(String str)
getString
public String getString()
- Specified by:
getString
in interface Literal
- Returns:
- return value as String (CFML Rules)
- See Also:
Literal.getString()
_writeOut
public org.objectweb.asm.Type _writeOut(BytecodeContext bc,
int mode)
throws BytecodeException
- Description copied from class:
ExpressionBase
- write out the stament to the adater
- Specified by:
_writeOut
in class ExpressionBase
- Returns:
- return Type of expression
- Throws:
BytecodeException
writeOut
public org.objectweb.asm.Type writeOut(BytecodeContext bc,
int mode,
int caseType)
throws BytecodeException
- Throws:
BytecodeException
getDouble
public Double getDouble(Double defaultValue)
- Specified by:
getDouble
in interface Literal
- Returns:
- return value as Double Object
- See Also:
Literal.getDouble(java.lang.Double)
getBoolean
public Boolean getBoolean(Boolean defaultValue)
- Specified by:
getBoolean
in interface Literal
- Returns:
- return value as a Boolean Object
- See Also:
Literal.getBoolean(java.lang.Boolean)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
upperCase
public void upperCase()
lowerCase
public void lowerCase()
duplicate
public LitString duplicate()
fromBracket
public void fromBracket(boolean fromBracket)
fromBracket
public boolean fromBracket()
Copyright © 2012 Railo