railo.transformer.bytecode.expression
Class ExpressionBase

java.lang.Object
  extended by railo.transformer.bytecode.expression.ExpressionBase
All Implemented Interfaces:
Expression
Direct Known Subclasses:
Argument, Assign, Assign, Cast, CastBoolean, CastDouble, CastFloat, CastOp, CastString, CollectionKey, DynAssign, ExpressionInvoker, LitBoolean, LitDouble, LiteralStringArray, LitFloat, LitInteger, LitLong, LitString, NullExpression, OpBool, OpContional, OPDecision, OpDouble, Operation, OpNegate, OpNegateNumber, OpString, UnaryOp, Variable, VariableDecl, VariableRef, VariableString

public abstract class ExpressionBase
extends Object
implements Expression

A Expression (Operation, Literal aso.)


Field Summary
 
Fields inherited from interface railo.transformer.bytecode.expression.Expression
MODE_REF, MODE_VALUE
 
Constructor Summary
ExpressionBase(int line)
          constructor of the class
 
Method Summary
abstract  org.objectweb.asm.Type _writeOut(BytecodeContext bc, int mode)
          write out the stament to the adater
 int getLine()
          Returns the value of line.
 void setLine(int line)
           
 org.objectweb.asm.Type writeOut(BytecodeContext bc, int mode)
          write out the stament to adapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionBase

public ExpressionBase(int line)
constructor of the class

Parameters:
line -
Method Detail

setLine

public void setLine(int line)
Specified by:
setLine in interface Expression
See Also:
Expression.setLine(int)

writeOut

public final org.objectweb.asm.Type writeOut(BytecodeContext bc,
                                             int mode)
                                      throws BytecodeException
write out the stament to adapter

Specified by:
writeOut in interface Expression
Parameters:
adapter -
mode -
Returns:
return Type of expression
Throws:
TemplateException
BytecodeException

_writeOut

public abstract org.objectweb.asm.Type _writeOut(BytecodeContext bc,
                                                 int mode)
                                          throws BytecodeException
write out the stament to the adater

Parameters:
adapter -
mode -
Returns:
return Type of expression
Throws:
TemplateException
BytecodeException

getLine

public int getLine()
Returns the value of line.

Specified by:
getLine in interface Expression
Returns:
value line


Copyright © 2012 Railo