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 java.lang.Object
implements Function

Represents a local function declaration.


Constructor Summary
LocalFunction(MethodDeclaration ast)
           
 
Method Summary
 java.lang.String declaredName()
           
 java.lang.Object evaluate(java.lang.Iterable<java.lang.Object> args, RuntimeBindings bindings, Options options)
           
 java.lang.Iterable<LocalVariable> parameters()
           
 Type returnType()
           
 java.lang.Iterable<Type> thrownTypes()
           
 java.lang.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 java.lang.String declaredName()
Specified by:
declaredName in interface Function

returnType

public Type returnType()
Specified by:
returnType in interface Function

typeParameters

public java.lang.Iterable<VariableType> typeParameters()
Specified by:
typeParameters in interface Function

parameters

public java.lang.Iterable<LocalVariable> parameters()
Specified by:
parameters in interface Function

thrownTypes

public java.lang.Iterable<Type> thrownTypes()
Specified by:
thrownTypes in interface Function

evaluate

public java.lang.Object evaluate(java.lang.Iterable<java.lang.Object> args,
                                 RuntimeBindings bindings,
                                 Options options)
                          throws EvaluatorException
Throws:
EvaluatorException