RECODER 0.92

recoder.abstraction
Class DummyGetClassMethod

java.lang.Object
  extended by recoder.abstraction.DummyGetClassMethod
All Implemented Interfaces:
ClassTypeContainer, Member, Method, ProgramModelElement, AccessFlags, ModelElement, NamedModelElement

public final class DummyGetClassMethod
extends java.lang.Object
implements Method

TODO 0.90 doc / RENAME TODO 0.90 instances could/should be cached

Author:
Tobias Gutzmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement
ProgramModelElement.LexicalOrder
 
Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement
ProgramModelElement.LexicalOrder
 
Field Summary
 
Fields inherited from interface recoder.abstraction.ProgramModelElement
LEXICAL_ORDER
 
Fields inherited from interface recoder.bytecode.AccessFlags
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE
 
Fields inherited from interface recoder.abstraction.ProgramModelElement
LEXICAL_ORDER
 
Fields inherited from interface recoder.bytecode.AccessFlags
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE
 
Constructor Summary
DummyGetClassMethod(ClassType parent, ProgramModelInfo service)
           
 
Method Summary
 java.util.List<? extends AnnotationUse> getAnnotations()
          Returns a list of Annotations.
 java.lang.String getBinaryName()
          Returns the binary name.
 ClassTypeContainer getContainer()
          Returns the enclosing package or class type, or method.
 ClassType getContainingClassType()
          Returns the logical parent type of this member.
 java.util.List<ClassType> getExceptions()
          Returns the exceptions of this method or constructor.
 java.lang.String getFullName()
          Returns the maximal expanded name including all applicable qualifiers.
 java.lang.String getName()
          Return the name of the model element.
 Package getPackage()
          Returns the package this element is defined in.
 ProgramModelInfo getProgramModelInfo()
          Returns the instance that can retrieve information about this program model element.
 ClassType getReturnType()
          Returns the return type of this method.
 java.util.List<Type> getSignature()
          Returns the signature of this method or constructor.
 java.util.List<? extends TypeParameter> getTypeParameters()
           
 java.util.List<ClassType> getTypes()
          Returns the class types locally defined within this container.
 boolean isAbstract()
          Checks if this member is abstract.
 boolean isFinal()
          Checks if this member is final.
 boolean isNative()
          Checks if this method is native.
 boolean isPrivate()
          Checks if this member is private.
 boolean isProtected()
          Checks if this member is protected.
 boolean isPublic()
          Checks if this member is public.
 boolean isStatic()
          Checks if this member is static.
 boolean isStrictFp()
          Checks if this member is strictfp.
 boolean isSynchronized()
          Checks if this method is synchronized.
 boolean isVarArgMethod()
          Checks if this method takes a variable number of arguments.
 void setProgramModelInfo(ProgramModelInfo pmi)
          Sets the instance that can retrieve information about this program model element.
 void validate()
          Check consistency and admissibility of a construct, e.g. cardinality of participants.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyGetClassMethod

public DummyGetClassMethod(ClassType parent,
                           ProgramModelInfo service)
Method Detail

getExceptions

public java.util.List<ClassType> getExceptions()
Description copied from interface: Method
Returns the exceptions of this method or constructor.

Specified by:
getExceptions in interface Method
Returns:
the exceptions of this method.

getReturnType

public ClassType getReturnType()
Description copied from interface: Method
Returns the return type of this method.

Specified by:
getReturnType in interface Method
Returns:
the return type of this method.

getSignature

public java.util.List<Type> getSignature()
Description copied from interface: Method
Returns the signature of this method or constructor.

Specified by:
getSignature in interface Method
Returns:
the signature of this method.

getTypeParameters

public java.util.List<? extends TypeParameter> getTypeParameters()
Specified by:
getTypeParameters in interface Method
Returns:

isAbstract

public boolean isAbstract()
Description copied from interface: Method
Checks if this member is abstract. A constructor will report false .

Specified by:
isAbstract in interface Method
Returns:
true if this member is abstract, false otherwise.
See Also:
Constructor

isNative

public boolean isNative()
Description copied from interface: Method
Checks if this method is native. A constructor will report false .

Specified by:
isNative in interface Method
Returns:
true if this method is native, false otherwise.
See Also:
Constructor

isSynchronized

public boolean isSynchronized()
Description copied from interface: Method
Checks if this method is synchronized. A constructor will report false.

Specified by:
isSynchronized in interface Method
Returns:
true if this method is synchronized, false otherwise.
See Also:
Constructor

isVarArgMethod

public boolean isVarArgMethod()
Description copied from interface: Method
Checks if this method takes a variable number of arguments.

Specified by:
isVarArgMethod in interface Method
Returns:
true if this methods takes a variable number of arguments, false otherwise.

getAnnotations

public java.util.List<? extends AnnotationUse> getAnnotations()
Description copied from interface: Member
Returns a list of Annotations.

Specified by:
getAnnotations in interface Member
Returns:
the annotations

getContainingClassType

public ClassType getContainingClassType()
Description copied from interface: Member
Returns the logical parent type of this member.

Specified by:
getContainingClassType in interface Member
Returns:
the class type containing this member.

isFinal

public boolean isFinal()
Description copied from interface: Member
Checks if this member is final.

Specified by:
isFinal in interface Member
Returns:
true if this member is final, false otherwise.

isPrivate

public boolean isPrivate()
Description copied from interface: Member
Checks if this member is private.

Specified by:
isPrivate in interface Member
Returns:
true if this member is private, false otherwise.

isProtected

public boolean isProtected()
Description copied from interface: Member
Checks if this member is protected.

Specified by:
isProtected in interface Member
Returns:
true if this member is protected, false otherwise.

isPublic

public boolean isPublic()
Description copied from interface: Member
Checks if this member is public.

Specified by:
isPublic in interface Member
Returns:
true if this member is public, false otherwise.

isStatic

public boolean isStatic()
Description copied from interface: Member
Checks if this member is static. Returns true for Constructors.

Specified by:
isStatic in interface Member
Returns:
true if this member is static, false otherwise.

isStrictFp

public boolean isStrictFp()
Description copied from interface: Member
Checks if this member is strictfp.

Specified by:
isStrictFp in interface Member
Returns:
true if this member is strictfp, false otherwise.

getFullName

public java.lang.String getFullName()
Description copied from interface: ProgramModelElement
Returns the maximal expanded name including all applicable qualifiers.

Specified by:
getFullName in interface ProgramModelElement
Returns:
the full name of this program model element.

getBinaryName

public java.lang.String getBinaryName()
Description copied from interface: ProgramModelElement
Returns the binary name. The binary name is the name this program model element would have in bytecode, i.e., how it either is read by the bytecode parser, or the name a compiler would give this element during the compilation process (if this program model element is represented in source code). See JLS, §13.1

Specified by:
getBinaryName in interface ProgramModelElement
Returns:
the bytecode name of this program model element

getProgramModelInfo

public ProgramModelInfo getProgramModelInfo()
Description copied from interface: ProgramModelElement
Returns the instance that can retrieve information about this program model element.

Specified by:
getProgramModelInfo in interface ProgramModelElement
Returns:
the program model info of this element.

setProgramModelInfo

public void setProgramModelInfo(ProgramModelInfo pmi)
Description copied from interface: ProgramModelElement
Sets the instance that can retrieve information about this program model element. Should not be called from outside a service.

Specified by:
setProgramModelInfo in interface ProgramModelElement
Parameters:
pmi - the program model info to be used for this element.

getName

public java.lang.String getName()
Description copied from interface: NamedModelElement
Return the name of the model element.

Specified by:
getName in interface NamedModelElement
Returns:
the name of the model element.

validate

public void validate()
              throws ModelException
Description copied from interface: ModelElement
Check consistency and admissibility of a construct, e.g. cardinality of participants. Should only check syntactical correctness, not semantical correctness.
For checking, e.g., if an AST element of type recoder.java.statement.If has a boolean parameter as condition, recoder.service.SemanticsChecker

Specified by:
validate in interface ModelElement
Throws:
ModelException
See Also:
SemanticsChecker

getContainer

public ClassTypeContainer getContainer()
Description copied from interface: ClassTypeContainer
Returns the enclosing package or class type, or method. A package will report null, a methods its enclosing class.

Specified by:
getContainer in interface ClassTypeContainer
Returns:
the container of this element.

getPackage

public Package getPackage()
Description copied from interface: ClassTypeContainer
Returns the package this element is defined in. Packages have no recursive scope and report themselves.

Specified by:
getPackage in interface ClassTypeContainer
Returns:
the package of this element.

getTypes

public java.util.List<ClassType> getTypes()
Description copied from interface: ClassTypeContainer
Returns the class types locally defined within this container. Returns inner types when this container is a class type.

Specified by:
getTypes in interface ClassTypeContainer
Returns:
the empty list.

RECODER 0.92