railo.transformer.bytecode.literal
Class LitBoolean
java.lang.Object
railo.transformer.bytecode.expression.ExpressionBase
railo.transformer.bytecode.literal.LitBoolean
- All Implemented Interfaces:
- ExprBoolean, Expression, Literal
public final class LitBoolean
- extends ExpressionBase
- implements Literal, ExprBoolean
Literal Boolean
Constructor Summary |
LitBoolean(boolean b,
int line)
constructor of the class |
TRUE
public static final LitBoolean TRUE
FALSE
public static final LitBoolean FALSE
LitBoolean
public LitBoolean(boolean b,
int line)
- constructor of the class
- Parameters:
b
- line
-
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
toExprBoolean
public static ExprBoolean toExprBoolean(boolean b,
int line)
toExprBoolean
public static ExprBoolean toExprBoolean(boolean b)
getDoubleValue
public double getDoubleValue()
- Returns:
- return value as double value
getDouble
public Double getDouble()
- 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.ExpressionBase#_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