edu.rice.cs.dynamicjava.symbol
Class LocalFunction

java.lang.Object
  extended by edu.rice.cs.dynamicjava.symbol.LocalFunction
All Implemented Interfaces:
Function

public class LocalFunction
extends Object
implements Function

Represents a local function declaration.


Constructor Summary
LocalFunction(MethodDeclaration ast)
           
 
Method Summary
 String declaredName()
           
 Object evaluate(Iterable<Object> args, RuntimeBindings bindings, Options options)
           
 Iterable<LocalVariable> parameters()
           
 Type returnType()
           
 Iterable<Type> thrownTypes()
           
 Iterable<VariableType> typeParameters()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFunction

public LocalFunction(MethodDeclaration ast)
Method Detail

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