anvil.script.compiler
Class ConstructorBase

java.lang.Object
  |
  +--anvil.script.compiler.Compiled
        |
        +--anvil.script.compiler.FunctionBase
              |
              +--anvil.script.compiler.MethodBase
                    |
                    +--anvil.script.compiler.ConstructorBase
All Implemented Interfaces:
ClassMember, CompilableFunction, ConstructorType, Function, MethodType, Type
Direct Known Subclasses:
NativeConstructor

public class ConstructorBase
extends MethodBase
implements ConstructorType

class ConstructorBase


Field Summary
protected  java.lang.reflect.Constructor _constructor
           
protected  boolean _isinner
           
protected  boolean _static
           
 
Fields inherited from class anvil.script.compiler.FunctionBase
_define, _dispatcher, _functionname, _generatordispatcher, _method, _parameters, _signature
 
Fields inherited from class anvil.script.compiler.Compiled
_document, _name, _parent, _parents, _private, _qname
 
Fields inherited from interface anvil.script.CompilableFunction
CLASSES, PARAMETER_ANY, PARAMETER_ANYLIST, PARAMETER_ARRAY, PARAMETER_BOOLEAN, PARAMETER_CONTEXT, PARAMETER_DOUBLE, PARAMETER_INT, PARAMETER_LIST, PARAMETER_LONG, PARAMETER_OBJECT, PARAMETER_REST, PARAMETER_STRING, SIGNATURES
 
Fields inherited from interface anvil.script.Type
CLASS, CONSTANT_VARIABLE, CONSTRUCTOR, FUNCTION, FUNCTION_PARAMETER, GLOBAL_NAMESPACE, IMPORT, INTERFACE, INTERFACE_METHOD, LOCAL_VARIABLE, MEMBER_VARIABLE, METHOD, MODULE, NAMESPACE, SCOPE0, STATIC_VARIABLE, SYSTEM_NAMESPACE, TYPE_NAMES
 
Constructor Summary
ConstructorBase(Scope parent, java.lang.reflect.Constructor constructor, java.lang.reflect.Method method, java.lang.String name, java.lang.Object[] parameters, Doc document, boolean privat)
           
 
Method Summary
 Any execute(Context context, Any self)
           
 Any execute(Context context, Any[] parameters)
           
 Any execute(Context context, Any self, Any param1)
           
 Any execute(Context context, Any self, Any[] parameters)
           
 Any execute(Context context, Any self, Any param1, Any param2)
           
 Any execute(Context context, Any self, Any param1, Any param2, Any param3)
           
 Any execute(Context context, Any self, Any param1, Any param2, Any param3, Any param4)
           
 int getType()
           
 boolean isStatic()
           
 java.lang.String toString()
           
 
Methods inherited from class anvil.script.compiler.MethodBase
getClassType
 
Methods inherited from class anvil.script.compiler.FunctionBase
getAttribute, getDispatcher, getGeneratorDispatcher, getMinimumParameterCount, getParameterCount, getParameterDefault, getParameterDoc, getParameterName, getParameterType, getTypeRef, isInnerFunction
 
Methods inherited from class anvil.script.compiler.Compiled
findClass, findInterface, findMethod, findNamespace, getDocument, getfield, getName, getParent, getParents, getQualifiedName, getstatic, getstatic, isPrivate, putfield, putstatic, putstatic, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface anvil.script.CompilableFunction
getAttribute, getDispatcher, getMinimumParameterCount, getParameterCount, getParameterDefault, getParameterDoc, getParameterName, getParameterType, isInnerFunction
 
Methods inherited from interface anvil.script.Type
getDocument, getName, getParent, getParents, getQualifiedName, getTypeRef, isPrivate
 
Methods inherited from interface anvil.script.ClassMember
getClassType
 

Field Detail

_constructor

protected java.lang.reflect.Constructor _constructor

_isinner

protected boolean _isinner

_static

protected boolean _static
Constructor Detail

ConstructorBase

public ConstructorBase(Scope parent,
                       java.lang.reflect.Constructor constructor,
                       java.lang.reflect.Method method,
                       java.lang.String name,
                       java.lang.Object[] parameters,
                       Doc document,
                       boolean privat)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class FunctionBase

getType

public int getType()
Specified by:
getType in interface Type
Overrides:
getType in class MethodBase

isStatic

public boolean isStatic()
Specified by:
isStatic in interface ConstructorType

execute

public Any execute(Context context,
                   Any[] parameters)
Specified by:
execute in interface Function
Overrides:
execute in class FunctionBase

execute

public Any execute(Context context,
                   Any self,
                   Any[] parameters)
Specified by:
execute in interface Function
Overrides:
execute in class FunctionBase

execute

public Any execute(Context context,
                   Any self)
Specified by:
execute in interface Function
Overrides:
execute in class FunctionBase

execute

public Any execute(Context context,
                   Any self,
                   Any param1)
Specified by:
execute in interface Function
Overrides:
execute in class FunctionBase

execute

public Any execute(Context context,
                   Any self,
                   Any param1,
                   Any param2)
Specified by:
execute in interface Function
Overrides:
execute in class FunctionBase

execute

public Any execute(Context context,
                   Any self,
                   Any param1,
                   Any param2,
                   Any param3)
Specified by:
execute in interface Function
Overrides:
execute in class FunctionBase

execute

public Any execute(Context context,
                   Any self,
                   Any param1,
                   Any param2,
                   Any param3,
                   Any param4)
Specified by:
execute in interface Function
Overrides:
execute in class FunctionBase