org.oXML.type
Class Function

java.lang.Object
  extended byorg.oXML.type.Function
Direct Known Subclasses:
ArrayFunction, ConstructorFunction, DynamicFunction, QuoteFunction, StaticMethod, TypeFunction, XPathFunction

public abstract class Function
extends java.lang.Object


Constructor Summary
Function(Name name, Type[] signature)
           
 
Method Summary
 Type getDeclaringType()
           
 FunctionKey getKey()
           
 Name getName()
           
 Type[] getSignature()
           
abstract  Node invoke(Node[] args, RuntimeContext rc)
           
abstract  Node invoke(Node target, Node[] args, RuntimeContext rc)
           
 java.lang.String print()
           
protected  java.lang.String printSignature()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Function

public Function(Name name,
                Type[] signature)
Parameters:
signature - the function signature, or null
Method Detail

getName

public Name getName()

getSignature

public Type[] getSignature()

getDeclaringType

public Type getDeclaringType()

getKey

public FunctionKey getKey()

invoke

public abstract Node invoke(Node[] args,
                            RuntimeContext rc)
                     throws ObjectBoxException
Throws:
ObjectBoxException

invoke

public abstract Node invoke(Node target,
                            Node[] args,
                            RuntimeContext rc)
                     throws ObjectBoxException
Throws:
ObjectBoxException

printSignature

protected java.lang.String printSignature()

print

public java.lang.String print()

toString

public java.lang.String toString()