NVelocity.Runtime.Directive
Class VMProxyArg

Constructor Summary
VMProxyArg(NVelocity.Runtime.RuntimeServices rs, string contextRef, string callerRef, int t)
         ctor for current impl * takes the reference literal we are proxying for, the literal the VM we are for is called with... *
VMProxyArg(NVelocity.Runtime.Directive.VMProxyArg model, NVelocity.Context.InternalContextAdapter c)
         not used in current impl * Constructor for alternate impl where VelProxy class would make new VMProxyArg objects, and use this contructor to avoid reparsing the reference args * that impl also had the VMProxyArg carry it's context

Property Summary
string CallerReference
string ContextReference
NVelocity.Runtime.Parser.Node.SimpleNode NodeTree
object StaticObject
int Type

Method Summary
object getObject(NVelocity.Context.InternalContextAdapter context)
         returns the value of the reference. Generally, this is only called for dynamic proxies, as the static ones should have been stored in the VMContext's localcontext store *
bool isConstant()
         tells if arg we are poxying for is dynamic or constant. *
object setObject(NVelocity.Context.InternalContextAdapter context, object o)
         Invoked by VMContext when Context.put() is called for a proxied reference. *

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

VMProxyArg

public VMProxyArg(NVelocity.Runtime.RuntimeServices rs,
                  string contextRef,
                  string callerRef,
                  int t)

ctor for current impl * takes the reference literal we are proxying for, the literal the VM we are for is called with... *

Parameters:
contextRef - reference arg in the definition of the VM, used in the VM
callerRef - reference used by the caller as an arg to the VM
t - type of arg : JJTREFERENCE, JJTTRUE, etc

VMProxyArg

public VMProxyArg(NVelocity.Runtime.Directive.VMProxyArg model,
                  NVelocity.Context.InternalContextAdapter c)

not used in current impl * Constructor for alternate impl where VelProxy class would make new VMProxyArg objects, and use this contructor to avoid reparsing the reference args * that impl also had the VMProxyArg carry it's context

Property Detail

CallerReference

public string CallerReference


ContextReference

public string ContextReference


NodeTree

public NVelocity.Runtime.Parser.Node.SimpleNode NodeTree


StaticObject

public object StaticObject


Type

public int Type

Method Detail

getObject

public object getObject(NVelocity.Context.InternalContextAdapter context)

returns the value of the reference. Generally, this is only called for dynamic proxies, as the static ones should have been stored in the VMContext's localcontext store *

Parameters:
context - Context to use for getting current value
Returns:
Object value *

isConstant

public bool isConstant()

tells if arg we are poxying for is dynamic or constant. *

Returns:
true of constant, false otherwise

setObject

public object setObject(NVelocity.Context.InternalContextAdapter context,
                        object o)

Invoked by VMContext when Context.put() is called for a proxied reference. *

Parameters:
context - context to modify via direct placement, or AST.setValue()
o - new value of reference
Returns:
Object currently null