|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.abstraction.ParameterizedType
public class ParameterizedType
A parameterized type, meaning a generic type plus actual type arguments. This is for internal representation and not an AST representation element.
| Nested Class Summary | |
|---|---|
class |
ParameterizedType.CapturedType
the capture of this parameterized type. |
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| 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 |
| 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 |
| Method Summary | |
|---|---|
ArrayType |
createArrayType()
|
boolean |
equals(java.lang.Object o)
|
java.util.List<Field> |
getAllFields()
Returns all visible fields that are defined in this class type or any of its supertypes. |
java.util.List<Method> |
getAllMethods()
Returns all visible methods that are defined in this class type or any of its supertypes. |
java.util.List<ClassType> |
getAllSupertypes()
Returns the list of all supertypes of this class type, in topological order, including the class type itself as first element. |
java.util.List<TypeArgument> |
getAllTypeArgs()
includes the type args of a possibly enclosing type |
java.util.List<ClassType> |
getAllTypes()
Returns all class types that are inner types of this class type, including visible inherited types. |
java.util.List<? extends AnnotationUse> |
getAnnotations()
Returns a list of Annotations. |
ArrayType |
getArrayType()
|
java.lang.String |
getBinaryName()
Returns the binary name. |
ParameterizedType.CapturedType |
getCapture()
|
java.util.List<? extends Constructor> |
getConstructors()
Returns the constructors locally defined within this class type. |
ClassTypeContainer |
getContainer()
Returns the enclosing package or class type, or method. |
ClassType |
getContainingClassType()
Returns the logical parent type of this member. |
java.util.List<TypeParameter> |
getDefinedTypeParameters()
|
ParameterizedType |
getEnclosingType()
|
ErasedType |
getErasedType()
|
java.util.List<? extends Field> |
getFields()
Returns the fields locally defined within this class type. |
java.lang.String |
getFullName()
Returns the maximal expanded name including all applicable qualifiers. |
java.lang.String |
getFullSignature()
Returns a full type signature of this type, i.e., the full name plus possible type arguments. |
ClassType |
getGenericType()
|
java.util.List<Method> |
getMethods()
Returns the methods locally defined within this class type. |
java.lang.String |
getName()
Return the name of the model element. |
Package |
getPackage()
Returns the package this element is defined in. |
static ParameterizedType |
getParameterizedType(ClassType genericType,
java.util.List<? extends TypeArgument> typeArgs,
ImplicitElementInfo service)
|
static ParameterizedType |
getParameterizedType(ClassType innerGenericType,
java.util.List<? extends TypeArgument> typeArgs,
ParameterizedType enclosingType,
ImplicitElementInfo service)
|
ImplicitElementInfo |
getProgramModelInfo()
Returns the instance that can retrieve information about this program model element. |
java.util.List<ClassType> |
getSupertypes()
Returns the list of locally declared supertypes of this class type. |
java.util.List<? extends TypeArgument> |
getTypeArgs()
|
java.util.List<TypeParameter> |
getTypeParameters()
Returns the type parameters of this class type. |
java.util.List<? extends ClassType> |
getTypes()
Returns the class types locally defined within this container. |
int |
hashCode()
|
boolean |
isAbstract()
Checks if this member is abstract. |
boolean |
isAnnotationType()
Checks if this class type denotes an annotation type |
boolean |
isEnumType()
Checks if this class type denotes an enum type |
boolean |
isFinal()
Checks if this member is final. |
boolean |
isInner()
Checks if this type is an inner class, as described in JLS, 3rd edition, §8.1.3 |
boolean |
isInterface()
Checks if this class type denotes an interface (i.e. ordinary interface or annotation type). |
boolean |
isOrdinaryClass()
Checks if this class type denotes an ordinary (i.e. not an enum) class. |
boolean |
isOrdinaryInterface()
Checks if this class type denotes an ordinary (i.e. not annotation type) interface. |
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. |
void |
setProgramModelInfo(ProgramModelInfo pmi)
Sets the instance that can retrieve information about this program model element. |
java.lang.String |
toString()
|
void |
validate()
Check consistency and admissibility of a construct, e.g. cardinality of participants. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ParameterizedType getParameterizedType(ClassType genericType,
java.util.List<? extends TypeArgument> typeArgs,
ImplicitElementInfo service)
public static ParameterizedType getParameterizedType(ClassType innerGenericType,
java.util.List<? extends TypeArgument> typeArgs,
ParameterizedType enclosingType,
ImplicitElementInfo service)
public java.util.List<TypeParameter> getDefinedTypeParameters()
public ArrayType getArrayType()
getArrayType in interface Typepublic ArrayType createArrayType()
createArrayType in interface Typepublic ParameterizedType.CapturedType getCapture()
public ClassType getGenericType()
public ParameterizedType getEnclosingType()
public java.util.List<TypeArgument> getAllTypeArgs()
public java.util.List<? extends TypeArgument> getTypeArgs()
public java.lang.String getFullName()
ProgramModelElement
getFullName in interface ProgramModelElementpublic java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElementpublic ImplicitElementInfo getProgramModelInfo()
ProgramModelElement
getProgramModelInfo in interface ProgramModelElementpublic void setProgramModelInfo(ProgramModelInfo pmi)
ProgramModelElement
setProgramModelInfo in interface ProgramModelElementpmi - the program model info to be used for this element.
java.lang.RuntimeException - - not to be called but set by constructor!public java.lang.String getName()
NamedModelElement
getName in interface NamedModelElement
public void validate()
throws ModelException
ModelElementrecoder.java.statement.If
has a boolean parameter as condition,
recoder.service.SemanticsChecker
validate in interface ModelElementModelExceptionSemanticsCheckerpublic java.util.List<TypeParameter> getTypeParameters()
ClassType
getTypeParameters in interface ClassTypepublic boolean isInterface()
ClassType
isInterface in interface ClassTypetrue if this object represents an interface,
false otherwise.public boolean isOrdinaryInterface()
ClassType
isOrdinaryInterface in interface ClassTypetrue if this object represents an ordinary interface,
false otherwise.public boolean isAnnotationType()
ClassType
isAnnotationType in interface ClassTypetrue if this object represents an annotation type,
false otherwisepublic boolean isEnumType()
ClassType
isEnumType in interface ClassTypetrue if this object represents an enum type,
false otherwisepublic boolean isOrdinaryClass()
ClassType
isOrdinaryClass in interface ClassTypetrue if this object represents an ordinary class type,
false otherwisepublic boolean isAbstract()
ClassTypetrue
.
isAbstract in interface ClassTypetrue if this member is abstract, false
otherwise.ClassType.isInterface()public java.util.List<ClassType> getSupertypes()
ClassType
getSupertypes in interface ClassTypepublic java.util.List<ClassType> getAllSupertypes()
ClassType
getAllSupertypes in interface ClassTypepublic java.util.List<? extends Field> getFields()
ClassType
getFields in interface ClassTypepublic java.util.List<Field> getAllFields()
ClassType
getAllFields in interface ClassTypepublic java.util.List<Method> getMethods()
ClassType
getMethods in interface ClassTypepublic java.util.List<Method> getAllMethods()
ClassType
getAllMethods in interface ClassTypepublic java.util.List<? extends Constructor> getConstructors()
ClassType
getConstructors in interface ClassTypepublic java.util.List<ClassType> getAllTypes()
ClassType
getAllTypes in interface ClassTypeClassType.getAllSupertypes()public boolean isFinal()
Member
isFinal in interface Membertrue if this member is final, false
otherwise.public boolean isStatic()
Membertrue for
Constructors.
isStatic in interface Membertrue if this member is static, false
otherwise.public boolean isPrivate()
Member
isPrivate in interface Membertrue if this member is private, false
otherwise.public boolean isProtected()
Member
isProtected in interface Membertrue if this member is protected, false
otherwise.public boolean isPublic()
Member
isPublic in interface Membertrue if this member is public, false
otherwise.public boolean isStrictFp()
Member
isStrictFp in interface Membertrue if this member is strictfp, false
otherwise.public ClassType getContainingClassType()
Member
getContainingClassType in interface Memberpublic java.util.List<? extends AnnotationUse> getAnnotations()
Member
getAnnotations in interface Memberpublic java.util.List<? extends ClassType> getTypes()
ClassTypeContainer
getTypes in interface ClassTypeContainerpublic Package getPackage()
ClassTypeContainer
getPackage in interface ClassTypeContainerpublic ClassTypeContainer getContainer()
ClassTypeContainer
getContainer in interface ClassTypeContainerpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getFullSignature()
TypegetFullName() on primitive types.
getFullSignature in interface Typepublic java.lang.String toString()
toString in class java.lang.Objectpublic ErasedType getErasedType()
getErasedType in interface ClassTypepublic boolean isInner()
ClassType
isInner in interface ClassType
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||