edu.rice.cs.dynamicjava.symbol
Class LocalFunction
java.lang.Object
edu.rice.cs.dynamicjava.symbol.LocalFunction
- All Implemented Interfaces:
- Function
public class LocalFunction
- extends Object
- implements Function
Represents a local function declaration.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalFunction
public LocalFunction(MethodDeclaration ast)
declaredName
public String declaredName()
- Specified by:
declaredName in interface Function
returnType
public Type returnType()
- Specified by:
returnType in interface Function
typeParameters
public Iterable<VariableType> typeParameters()
- Specified by:
typeParameters in interface Function
parameters
public Iterable<LocalVariable> parameters()
- Specified by:
parameters in interface Function
thrownTypes
public Iterable<Type> thrownTypes()
- Specified by:
thrownTypes in interface Function
evaluate
public Object evaluate(Iterable<Object> args,
RuntimeBindings bindings,
Options options)
throws EvaluatorException
- Throws:
EvaluatorException