railo.transformer.bytecode.expression.var
Class Variable

java.lang.Object
  extended by railo.transformer.bytecode.expression.ExpressionBase
      extended by railo.transformer.bytecode.expression.var.Variable
All Implemented Interfaces:
Expression, Invoker

public class Variable
extends ExpressionBase
implements Invoker


Field Summary
 
Fields inherited from interface railo.transformer.bytecode.expression.Expression
MODE_REF, MODE_VALUE
 
Constructor Summary
Variable(int line)
           
Variable(int scope, int line)
           
 
Method Summary
 org.objectweb.asm.Type _writeOut(BytecodeContext bc, int mode)
          write out the stament to the adater
 void addMember(Member member)
          add a member to the invoker
static boolean canRegisterKey(Expression name)
           
 Member getFirstMember()
           
 Member getLastMember()
           
 List getMembers()
          returns all members as a List
 int getScope()
           
 boolean ignoredFirstMember()
           
 void ignoredFirstMember(boolean b)
           
static boolean registerKey(BytecodeContext bc, Expression name)
           
static boolean registerKey(BytecodeContext bc, Expression name, boolean doUpperCase)
           
 void setScope(int scope)
           
 
Methods inherited from class railo.transformer.bytecode.expression.ExpressionBase
getLine, setLine, 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
getLine, setLine, writeOut
 

Constructor Detail

Variable

public Variable(int line)

Variable

public Variable(int scope,
                int line)
Method Detail

getScope

public int getScope()
Returns:
the scope

setScope

public void setScope(int scope)
Parameters:
scope - the scope to set

addMember

public void addMember(Member member)
Description copied from interface: Invoker
add a member to the invoker

Specified by:
addMember in interface Invoker

_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

registerKey

public static boolean registerKey(BytecodeContext bc,
                                  Expression name)
                           throws BytecodeException
Throws:
BytecodeException

registerKey

public static boolean registerKey(BytecodeContext bc,
                                  Expression name,
                                  boolean doUpperCase)
                           throws BytecodeException
Throws:
BytecodeException

canRegisterKey

public static boolean canRegisterKey(Expression name)
                              throws BytecodeException
Throws:
BytecodeException

getMembers

public List getMembers()
Description copied from interface: Invoker
returns all members as a List

Specified by:
getMembers in interface Invoker
Returns:
the members

getFirstMember

public Member getFirstMember()
Returns:
the first member or null if there no member

getLastMember

public Member getLastMember()
Returns:
the first member or null if there no member

ignoredFirstMember

public void ignoredFirstMember(boolean b)

ignoredFirstMember

public boolean ignoredFirstMember()


Copyright © 2012 Railo