edu.rice.cs.dynamicjava.symbol
Class GetClassMethod

java.lang.Object
  extended by edu.rice.cs.dynamicjava.symbol.SpecialMethod
      extended by edu.rice.cs.dynamicjava.symbol.GetClassMethod
All Implemented Interfaces:
Access.Limited, DJMethod, Function

public class GetClassMethod
extends SpecialMethod

Provides a DJMethod interface for accessing a class's implicit "getClass()" method. This overrides Object.getClass(), refining the return type.


Constructor Summary
GetClassMethod(ClassType t, TypeSystem ts)
           
 
Method Summary
 Access accessibility()
          The symbol's access level.
 Access.Module accessModule()
          Get the module enclosing this symbol's declaration.
 String declaredName()
          The name used to access this symbol.
 DJClass declaringClass()
          The class declaring this method.
protected  Method implementation()
           
 boolean isAbstract()
           
 boolean isFinal()
           
 boolean isStatic()
           
 Iterable<LocalVariable> parameters()
           
 Type returnType()
           
 Iterable<Type> thrownTypes()
           
 Iterable<VariableType> typeParameters()
           
 
Methods inherited from class edu.rice.cs.dynamicjava.symbol.SpecialMethod
declaredSignature, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetClassMethod

public GetClassMethod(ClassType t,
                      TypeSystem ts)
Method Detail

declaredName

public String declaredName()
Description copied from interface: Access.Limited
The name used to access this symbol.


declaringClass

public DJClass declaringClass()
Description copied from interface: DJMethod
The class declaring this method. May be null for certain special methods.


typeParameters

public Iterable<VariableType> typeParameters()

parameters

public Iterable<LocalVariable> parameters()

returnType

public Type returnType()

thrownTypes

public Iterable<Type> thrownTypes()

isStatic

public boolean isStatic()

isAbstract

public boolean isAbstract()

isFinal

public boolean isFinal()

accessibility

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


accessModule

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


implementation

protected Method implementation()
                         throws NoSuchMethodException
Specified by:
implementation in class SpecialMethod
Throws:
NoSuchMethodException