|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imemex.functions.AbstractFunction
public abstract class AbstractFunction
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.imemex.functions.Function |
|---|
Function.FuncType |
| Constructor Summary | |
|---|---|
AbstractFunction(Function.FuncType type,
java.lang.String name,
java.lang.Class<?> retType,
java.util.List<java.lang.Class<?>> argTypes)
|
|
| Method Summary | |
|---|---|
boolean |
checkSignature(java.lang.String name,
java.lang.Class<?> retType,
java.util.List<java.lang.Class<?>> argTypes)
checks if the signature of this function matches |
abstract java.lang.Object |
execute(java.util.List<java.lang.Object> args)
executes this function |
java.util.List<java.lang.Class<?>> |
getArgTypes()
gets ordered types of arguments |
java.lang.String |
getID()
gets unique id of this function |
java.lang.String |
getName()
gets name of this function |
java.lang.Class<?> |
getReturnType()
gets type of of return value |
Function.FuncType |
getType()
gets type of this function |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFunction(Function.FuncType type,
java.lang.String name,
java.lang.Class<?> retType,
java.util.List<java.lang.Class<?>> argTypes)
| Method Detail |
|---|
public abstract java.lang.Object execute(java.util.List<java.lang.Object> args)
throws InvalidArgumentsException
Function
execute in interface Functionargs - list of arguments (order & type have to match!)
InvalidArgumentsException - if wrong argument types, values or nr of args incorrect
public boolean checkSignature(java.lang.String name,
java.lang.Class<?> retType,
java.util.List<java.lang.Class<?>> argTypes)
Function
checkSignature in interface Functionpublic java.util.List<java.lang.Class<?>> getArgTypes()
Function
getArgTypes in interface Functionpublic final java.lang.String getID()
Function
getID in interface Functionpublic java.lang.String getName()
Function
getName in interface Functionpublic java.lang.Class<?> getReturnType()
Function
getReturnType in interface Functionpublic Function.FuncType getType()
Function
getType in interface FunctionFunction.FuncType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||