|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.xml.DelegatingNutsFunction
public class DelegatingNutsFunction
This is the super class for conveniently delegating to another NutsFunction object. This class does nothing but forwarding the call to the delegate target.
Subclass can override any method to provide custom behavior.
| Constructor Summary | |
|---|---|
DelegatingNutsFunction(NutsFunction fun)
Create a DelegatingNutsFunction object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
call(java.lang.Object[] args)
Call the function with arguments. |
boolean |
equals(java.lang.Object obj)
|
NutsFunction |
getDelegateTarget()
To get the delegate target. |
Location |
getLocation()
|
java.lang.String |
getName()
Get the function name. |
int |
getParameterCount()
Get the number of parameters expected. |
java.lang.String[] |
getParameterNames()
Get the names of the parameters. |
java.lang.Class |
getReturnType()
Get the return type of the function. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingNutsFunction(NutsFunction fun)
fun - the delegate target.| Method Detail |
|---|
public java.lang.String[] getParameterNames()
NutsFunction
getParameterNames in interface NutsFunctionpublic NutsFunction getDelegateTarget()
public java.lang.Object call(java.lang.Object[] args)
NutsFunction
call in interface NutsFunctionargs - the arguments.
public Location getLocation()
getLocation in interface LocationAwarepublic java.lang.String getName()
NutsFunction
getName in interface NutsFunctionpublic int getParameterCount()
NutsFunction
getParameterCount in interface NutsFunctionpublic java.lang.Class getReturnType()
NutsFunction
getReturnType in interface NutsFunctionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||