org.oXML.engine.template
Class DynamicConstructor

java.lang.Object
  extended byorg.oXML.type.Function
      extended byorg.oXML.type.ConstructorFunction
          extended byorg.oXML.engine.template.DynamicConstructor

public class DynamicConstructor
extends ConstructorFunction


Field Summary
protected  Parameter[] parentConstructors
           
protected  Parameter[] variables
           
 
Constructor Summary
DynamicConstructor(Type type, Parameter[] variables)
          create a Generated Default Constructor
DynamicConstructor(Type type, Parameter[] params, Template body, Parameter[] variables, Parameter[] parentConstructors)
           
 
Method Summary
 Node evaluate(DynamicNode instance, Node[] args, RuntimeContext env)
           
 void initialise(DynamicNode instance, Node[] args, RuntimeContext env)
           
 Node invoke(AbstractNode target, Node[] args, RuntimeContext context)
           
 Node invoke(Node[] args, RuntimeContext context)
           
 Node invoke(Node target, Node[] args, RuntimeContext context)
           
 
Methods inherited from class org.oXML.type.ConstructorFunction
getDeclaringType
 
Methods inherited from class org.oXML.type.Function
getKey, getName, getSignature, print, printSignature, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

variables

protected Parameter[] variables

parentConstructors

protected Parameter[] parentConstructors
Constructor Detail

DynamicConstructor

public DynamicConstructor(Type type,
                          Parameter[] params,
                          Template body,
                          Parameter[] variables,
                          Parameter[] parentConstructors)

DynamicConstructor

public DynamicConstructor(Type type,
                          Parameter[] variables)
create a Generated Default Constructor

Method Detail

invoke

public Node invoke(Node[] args,
                   RuntimeContext context)
            throws ObjectBoxException
Specified by:
invoke in class Function
Throws:
ObjectBoxException

invoke

public Node invoke(Node target,
                   Node[] args,
                   RuntimeContext context)
            throws ObjectBoxException
Overrides:
invoke in class ConstructorFunction
Throws:
ObjectBoxException

invoke

public Node invoke(AbstractNode target,
                   Node[] args,
                   RuntimeContext context)
            throws ObjectBoxException
Throws:
ObjectBoxException

initialise

public void initialise(DynamicNode instance,
                       Node[] args,
                       RuntimeContext env)
                throws ObjectBoxException
Throws:
ObjectBoxException

evaluate

public Node evaluate(DynamicNode instance,
                     Node[] args,
                     RuntimeContext env)
              throws ObjectBoxException
Throws:
ObjectBoxException