railo.transformer.bytecode.literal
Class LitLong

java.lang.Object
  extended by railo.transformer.bytecode.expression.ExpressionBase
      extended by railo.transformer.bytecode.literal.LitLong
All Implemented Interfaces:
Expression, Literal

public final class LitLong
extends ExpressionBase
implements Literal

Literal Double Value


Field Summary
 
Fields inherited from interface railo.transformer.bytecode.expression.Expression
MODE_REF, MODE_VALUE
 
Constructor Summary
LitLong(long l, 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
 Boolean getBoolean()
           
 Boolean getBoolean(Boolean defaultValue)
           
 boolean getBooleanValue()
           
 Double getDouble(Double defaultValue)
           
 Long getLong()
           
 long getLongValue()
           
 String getString()
           
static Expression toExpr(long l, Position start, Position end)
           
 
Methods inherited from class railo.transformer.bytecode.expression.ExpressionBase
getEnd, getStart, setEnd, setStart, writeOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.transformer.bytecode.expression.Expression
getEnd, getStart, setEnd, setStart, writeOut
 

Constructor Detail

LitLong

public LitLong(long l,
               Position start,
               Position end)
constructor of the class

Parameters:
d -
line -
Method Detail

toExpr

public static Expression toExpr(long l,
                                Position start,
                                Position end)

getLongValue

public long getLongValue()
Returns:
return value as int

getLong

public Long getLong()
Returns:
return value as Double Object

getString

public String getString()
Specified by:
getString in interface Literal
Returns:
return value as String (CFML Rules)
See Also:
Literal.getString()

getBoolean

public Boolean getBoolean()
Returns:
return value as a Boolean Object

getBooleanValue

public boolean getBooleanValue()
Returns:
return value as a boolean value

_writeOut

public org.objectweb.asm.Type _writeOut(BytecodeContext bc,
                                        int mode)
Description copied from class: ExpressionBase
write out the stament to the adater

Specified by:
_writeOut in class ExpressionBase
Returns:
return Type of expression
See Also:
railo.transformer.bytecode.expression.Expression#_writeOut(org.objectweb.asm.commons.GeneratorAdapter, int)

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)


Copyright © 2012 Railo