edu.rice.cs.dynamicjava.symbol
Class ArrayCloneMethod

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

public class ArrayCloneMethod
extends SpecialMethod

Provides a DJMethod interface for accessing an array's implicit "clone" method. This overrides Object.clone(), giving it public access, eliminating the CloneNotSupported throws clause, and refining the return type.


Constructor Summary
ArrayCloneMethod(ArrayType t)
           
 
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

ArrayCloneMethod

public ArrayCloneMethod(ArrayType t)
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