|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.bytecode.TypeParameterInfo
public class TypeParameterInfo
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.abstraction.TypeParameter |
|---|
TypeParameter.DescrImp, TypeParameter.EqualsImplementor |
| 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 |
| Constructor Summary | |
|---|---|
TypeParameterInfo(java.lang.String name,
java.lang.String[] boundNames,
java.util.List<TypeArgumentInfo>[] boundArgs,
ClassFile containingClassFile)
|
|
| Method Summary | |
|---|---|
ArrayType |
createArrayType()
|
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<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. |
int |
getBoundCount()
|
java.lang.String |
getBoundName(int boundidx)
|
java.util.List<TypeArgumentInfo> |
getBoundTypeArguments(int boundidx)
|
java.util.List<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. |
ErasedType |
getErasedType()
|
java.util.List<FieldInfo> |
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. |
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. |
java.lang.String |
getParameterName()
|
ProgramModelInfo |
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 TypeParameter> |
getTypeParameters()
Returns the type parameters of this class type. |
java.util.List<ClassType> |
getTypes()
Returns the class types locally defined within this container. |
int |
hashCode()
|
boolean |
inheritanceEqual(TypeParameter o)
ONLY FOR INTERNAL USE !!! |
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, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TypeParameterInfo(java.lang.String name,
java.lang.String[] boundNames,
java.util.List<TypeArgumentInfo>[] boundArgs,
ClassFile containingClassFile)
| Method Detail |
|---|
public ArrayType getArrayType()
getArrayType in interface Typepublic ArrayType createArrayType()
createArrayType in interface Typepublic java.lang.String getFullName()
ProgramModelElement
getFullName in interface ProgramModelElementpublic java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElementpublic ProgramModelInfo 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.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.lang.String getParameterName()
getParameterName in interface TypeParameterpublic int getBoundCount()
getBoundCount in interface TypeParameterpublic java.lang.String getBoundName(int boundidx)
getBoundName in interface TypeParameterpublic java.util.List<TypeArgumentInfo> getBoundTypeArguments(int boundidx)
getBoundTypeArguments in interface TypeParameterpublic boolean inheritanceEqual(TypeParameter o)
TypeParameter
inheritanceEqual in interface TypeParameterpublic int hashCode()
hashCode in class java.lang.Objectpublic 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<FieldInfo> 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<Constructor> getConstructors()
ClassType
getConstructors in interface ClassTypepublic java.util.List<ClassType> getAllTypes()
ClassType
getAllTypes in interface ClassTypeClassType.getAllSupertypes()public java.util.List<? extends TypeParameter> getTypeParameters()
ClassType
getTypeParameters in interface ClassTypepublic 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 MembergetContainingClassType in interface TypeParameterpublic java.util.List<? extends AnnotationUse> getAnnotations()
Member
getAnnotations in interface Memberpublic java.util.List<ClassType> getTypes()
ClassTypeContainer
getTypes in interface ClassTypeContainerpublic Package getPackage()
ClassTypeContainer
getPackage in interface ClassTypeContainerpublic ClassTypeContainer getContainer()
ClassTypeContainer
getContainer in interface ClassTypeContainerpublic java.lang.String getFullSignature()
TypegetFullName() on primitive types.
getFullSignature in interface Typepublic ErasedType getErasedType()
getErasedType in interface ClassTypepublic boolean isInner()
ClassType
isInner in interface ClassTypepublic java.lang.String toString()
toString in class java.lang.Object
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||