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, CastBoolean, CastDouble, CastFloat, CastInt, CastOther, CastString, ClosureAsExpression, CollectionKey, CollectionKeyArray, DynAssign, ExpressionInvoker, LitBoolean, LitDouble, LiteralStringArray, LitFloat, LitInteger, LitLong, LitString, Null, NullExpression, OpBool, OpContional, OPDecision, OpDouble, OpElvis, OpNegate, OpNegateNumber, OpString, Variable, 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(Position start, Position end)
           
 
Method Summary
abstract  org.objectweb.asm.Type _writeOut(BytecodeContext bc, int mode)
          write out the stament to the adater
 Position getEnd()
           
 Position getStart()
           
 void setEnd(Position end)
           
 void setStart(Position start)
           
 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(Position start,
                      Position end)
Method Detail

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

getStart

public Position getStart()
Specified by:
getStart in interface Expression

getEnd

public Position getEnd()
Specified by:
getEnd in interface Expression

setStart

public void setStart(Position start)
Specified by:
setStart in interface Expression

setEnd

public void setEnd(Position end)
Specified by:
setEnd in interface Expression


Copyright © 2012 Railo