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.
 java.lang.String declaredName()
          The name used to access this symbol.
 DJClass declaringClass()
          The class declaring this method.
protected  java.lang.reflect.Method implementation()
           
 boolean isAbstract()
           
 boolean isFinal()
           
 boolean isStatic()
           
 java.lang.Iterable<LocalVariable> parameters()
           
 Type returnType()
           
 java.lang.Iterable<Type> thrownTypes()
           
 java.lang.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 java.lang.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 java.lang.Iterable<VariableType> typeParameters()

parameters

public java.lang.Iterable<LocalVariable> parameters()

returnType

public Type returnType()

thrownTypes

public java.lang.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 java.lang.reflect.Method implementation()
                                           throws java.lang.NoSuchMethodException
Specified by:
implementation in class SpecialMethod
Throws:
java.lang.NoSuchMethodException