railo.transformer.bytecode.literal
Class LitString

java.lang.Object
  extended by railo.transformer.bytecode.expression.ExpressionBase
      extended by 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


Field Summary
static LitString EMPTY
           
static int MAX_SIZE
           
static int TYPE_LOWER
           
static int TYPE_ORIGINAL
           
static int TYPE_UPPER
           
 
Fields inherited from interface railo.transformer.bytecode.expression.Expression
MODE_REF, MODE_VALUE
 
Constructor Summary
LitString(String str, Position start, Position end)
          constructor of the class
 
Method Summary
 org.objectweb.asm.Type _writeOut(BytecodeContext bc, int mode)
          write out the stament to the adater
 LitString duplicate()
           
 boolean equals(Object obj)
           
 boolean fromBracket()
           
 void fromBracket(boolean fromBracket)
           
 Boolean getBoolean(Boolean defaultValue)
           
 Double getDouble(Double defaultValue)
           
 String getString()
           
 void lowerCase()
           
static ExprString toExprString(String str)
           
static ExprString toExprString(String str, Position start, Position end)
           
static LitString toLitString(String str)
           
 String toString()
           
 void upperCase()
           
 org.objectweb.asm.Type writeOut(BytecodeContext bc, int mode, int caseType)
           
 
Methods inherited from class railo.transformer.bytecode.expression.ExpressionBase
getEnd, getStart, setEnd, setStart, writeOut
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.transformer.bytecode.expression.Expression
getEnd, getStart, setEnd, setStart, writeOut
 

Field Detail

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
Constructor Detail

LitString

public LitString(String str,
                 Position start,
                 Position end)
constructor of the class

Parameters:
str -
line -
Method Detail

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