edu.rice.cs.dynamicjava.symbol
Interface DJConstructor

All Superinterfaces:
Access.Limited, Function
All Known Implementing Classes:
JavaClass.JavaConstructor

public interface DJConstructor
extends Function, Access.Limited

Represents a constructor declaration.


Method Summary
 Access accessibility()
          The symbol's access level.
 Access.Module accessModule()
          Get the module enclosing this symbol's declaration.
 DJConstructor declaredSignature()
          Get the original declared constructor (prior to any substitutions, etc).
 DJClass declaringClass()
          The class declaring this constructor.
 Object evaluate(Object outer, Iterable<Object> args, RuntimeBindings bindings, Options options)
          Invoke the constructor with the given parameters.
 
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 constructor. May be null for certain special fields.


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

DJConstructor declaredSignature()
Get the original declared constructor (prior to any substitutions, etc).


evaluate

Object evaluate(Object outer,
                Iterable<Object> args,
                RuntimeBindings bindings,
                Options options)
                throws EvaluatorException
Invoke the constructor with the given parameters. outer may be null.

Throws:
EvaluatorException