edu.rice.cs.dynamicjava.symbol
Interface DJMethod

All Superinterfaces:
Access.Limited, Function
All Known Implementing Classes:
ArrayCloneMethod, GetClassMethod, JavaClass.JavaMethod, SpecialMethod

public interface DJMethod
extends Function, Access.Limited

Represents a method declaration.


Method Summary
 Access accessibility()
          The symbol's access level.
 Access.Module accessModule()
          Get the module enclosing this symbol's declaration.
 DJMethod declaredSignature()
          Get the original declared method (prior to any substitutions, etc).
 DJClass declaringClass()
          The class declaring this method.
 Object evaluate(Object receiver, Iterable<Object> args, RuntimeBindings bindings, Options options)
          Invoke the method with the given parameters.
 boolean isAbstract()
           
 boolean isFinal()
           
 boolean isStatic()
           
 
Methods inherited from interface edu.rice.cs.dynamicjava.symbol.Function
declaredName, parameters, returnType, thrownTypes, typeParameters
 
Methods inherited from interface edu.rice.cs.dynamicjava.symbol.Access.Limited
declaredName
 

Method Detail

declaringClass

DJClass declaringClass()
The class declaring this method. May be null for certain special methods.


isStatic

boolean isStatic()

isAbstract

boolean isAbstract()

isFinal

boolean isFinal()

accessibility

Access accessibility()
Description copied from interface: Access.Limited
The symbol's access level.

Specified by:
accessibility in interface Access.Limited

accessModule

Access.Module accessModule()
Description copied from interface: Access.Limited
Get the module enclosing this symbol's declaration.

Specified by:
accessModule in interface Access.Limited

declaredSignature

DJMethod declaredSignature()
Get the original declared method (prior to any substitutions, etc).


evaluate

Object evaluate(Object receiver,
                Iterable<Object> args,
                RuntimeBindings bindings,
                Options options)
                throws EvaluatorException
Invoke the method with the given parameters.

Throws:
EvaluatorException