edu.rice.cs.dynamicjava.symbol
Class SpecialMethod
java.lang.Object
edu.rice.cs.dynamicjava.symbol.SpecialMethod
- All Implemented Interfaces:
- Access.Limited, DJMethod, Function
- Direct Known Subclasses:
- ArrayCloneMethod, GetClassMethod
public abstract class SpecialMethod
- extends Object
- implements DJMethod
Abstract parent for special implicit methods. The evaluation details are handled
here, allowing the implementation to be based on a method with a different signature.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecialMethod
public SpecialMethod()
implementation
protected abstract Method implementation()
throws ClassNotFoundException,
NoSuchMethodException
- Throws:
ClassNotFoundException
NoSuchMethodException
declaredSignature
public DJMethod declaredSignature()
- Description copied from interface:
DJMethod
- Get the original declared method (prior to any substitutions, etc).
- Specified by:
declaredSignature in interface DJMethod
evaluate
public Object evaluate(Object receiver,
Iterable<Object> args,
RuntimeBindings bindings,
Options options)
throws EvaluatorException
- Description copied from interface:
DJMethod
- Invoke the method with the given parameters.
- Specified by:
evaluate in interface DJMethod
- Throws:
EvaluatorException