|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.javatools.parser.java.v2.common.AbstractElement
oracle.javatools.parser.java.v2.common.AbstractType
oracle.javatools.parser.java.v2.common.AbstractClass
public abstract class AbstractClass
An abstract implementation of JavaClass. Provided so that all implementations have a consistent behavior for equals(O) and hashCode(). If you want to implement JavaTypeVariable or JavaWildcardType, you should extend AbstractType instead.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface oracle.javatools.parser.java.v2.JavaPreferences |
|---|
JavaPreferences.MemberOrder |
| Field Summary |
|---|
| Fields inherited from interface oracle.javatools.parser.java.v2.model.JavaClass |
|---|
EMPTY_ARRAY |
| Fields inherited from interface oracle.javatools.parser.java.v2.JavaOperators |
|---|
OPT_ADD, OPT_ADDASG, OPT_AND, OPT_ANNOTATION, OPT_ARRAYCONST, OPT_ASG, OPT_base, OPT_BITAND, OPT_BITANDASG, OPT_BITNOT, OPT_BITOR, OPT_BITORASG, OPT_BITXOR, OPT_BITXORASG, OPT_CLASS_LITERAL, OPT_COND, OPT_DEREF, OPT_DIV, OPT_DIVASG, OPT_DOT, OPT_EQ, OPT_GE, OPT_GT, OPT_INSTANCEOF, OPT_invalid, OPT_INVOKE, OPT_LE, OPT_LIST, OPT_LITERAL, OPT_LSH, OPT_LSHASG, OPT_LT, OPT_max, OPT_MINUS, OPT_MINUSASG, OPT_MOD, OPT_MODASG, OPT_MUL, OPT_MULASG, OPT_NEGATIVE, OPT_NESTEXP, OPT_NEWARRAY, OPT_NEWOBJECT, OPT_NOT, OPT_NOTEQ, OPT_OR, OPT_POSITIVE, OPT_POSTDEC, OPT_POSTINC, OPT_precedence, OPT_PREDEC, OPT_PREINC, OPT_QUALIFIED_SUPER, OPT_QUALIFIED_THIS, OPT_RSH, OPT_RSHASG, OPT_SIMPLE_NAME, OPT_tokens, OPT_TYPE, OPT_TYPECAST, OPT_URSH, OPT_URSHASG, OPT_words |
| Constructor Summary | |
|---|---|
AbstractClass() |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescriptor()Gets the descriptor for this type, as defined by the JVMS2. |
int |
getElementKind() |
java.lang.String |
getSignature()Gets the "Signature" attribute of this type, as defined by the JVMS3. |
JavaClass |
getTypeErasure()Gets the type erasure of this type, as defined by the JLS3. |
java.lang.String |
getTypeSignature()Gets the type signature for this type, as defined by the JVMS3. |
java.lang.String |
getUniqueIdentifier()Gets a unique identifier for this type. |
boolean |
isAnnotation() |
boolean |
isEnum() |
boolean |
isExported() |
boolean |
isInterface() |
boolean |
isMemberClass()True if this is a member type. |
| Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractElement |
|---|
getActualTypeArguments, getDeclaredAnnotation, getDeclaredAnnotations, getSourceElement, getSourceSymbol, getTypeParameters, hasActualTypeArguments, hasTypeParameters, isAbstract, isDeprecated, isFinal, isHidden, isPackagePrivate, isPrivate, isProtected, isPublic, isSourceElement, isStatic, isSynthetic, isTransient, isVarargs |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaClass |
|---|
clearCompiledInfo |
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaType |
|---|
equals, getArrayDimensions, getBaseComponentType, getClass, getClasses, getClinitMethod, getClosestClass, getComponentType, getDeclaredClass, getDeclaredClasses, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getDeclaredMethods, getField, getFields, getHierarchy, getInterfaces, getMethod, getMethods, getMethods, getName, getPackage, getPackageName, getQualifiedName, getRawName, getSuperclass, getThisValue, getUnqualifiedName, getUnresolvedInterfaces, getURL, getVMName, isArray, isAssignableFrom, isPrimitive, isSubtypeOf |
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaIsGeneric |
|---|
getActualTypeArguments, getTypeParameter, getTypeParameters, hasActualTypeArguments, hasTypeParameters |
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaMember |
|---|
getOwningClass, isAbstract, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic |
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasType |
|---|
getResolvedType, getUnresolvedType |
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasAnnotations |
|---|
getAnnotation, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotations |
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement |
|---|
getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo |
| Constructor Detail |
|---|
public AbstractClass()
| Method Detail |
|---|
public int getElementKind()
getElementKind in interface JavaElementgetElementKind in class AbstractTypepublic JavaClass getTypeErasure()
JavaTypegetTypeErasure in interface JavaTypegetTypeErasure in class AbstractTypepublic java.lang.String getDescriptor()
JavaTypeFor jdk < 1.5, the "FieldDescriptor" is returned (JVMS2). For jdk < 1.5, descriptors and signatures are the same thing.
For jdk >= 1.5, a type signature of the type erasure is returned.
Note: Do not confuse a type's descriptor with a method's descriptor. The descriptor of the type of a method is the field descriptor describing its return type. The descriptor of a method describes parameter types.
getDescriptor in interface JavaTypegetDescriptor in class AbstractTypepublic java.lang.String getTypeSignature()
JavaTypeA JavaClass returns its "ClassTypeSignature" (JVMS3). A JavaClass is uniquely identified by its type signature. Example value: Ljava/util/List<Ljava/lang/Object;>;
A JavaTypeVariable returns its "TypeVariableSignature" (JVMS3). A type variable is uniquely identified by the combination of its owning declaration AND its type signature. Example value: TE;
A WildcardType returns its "TypeArgument" value (JVMS3). A wildcard type is uniquely identified by its type signature. Example values: * +Ljava/lang/Object;.
getTypeSignature in interface JavaTypepublic java.lang.String getSignature()
JavaTypeThe "Signature" attribute for a field is the "ClassTypeSignature" for its type.
The "Signature" attribute for a method involves the "ClassSignature"s for its type parameters and the "ClassTypeSignature"s of its remaining constituent types.
A JavaClass returns its "ClassSignature" (JVMS3).
A JavaTypeVariable does not have a class signature, but will return a string for use in a class signature or a method signature.
A WildcardType does not have a class signature and may not part of a class signature. Its return value is undefined.
getSignature in interface JavaTypegetSignature in class AbstractTypepublic java.lang.String getUniqueIdentifier()
JavaTypegetUniqueIdentifier in interface JavaMembergetUniqueIdentifier in interface JavaTypegetUniqueIdentifier in class AbstractTypepublic boolean isInterface()
isInterface in interface JavaTypeisInterface in class AbstractTypepublic boolean isAnnotation()
isAnnotation in interface JavaTypeisAnnotation in class AbstractTypepublic boolean isEnum()
isEnum in interface JavaTypeisEnum in class AbstractTypepublic boolean isExported()
isExported in interface JavaTypeisExported in class AbstractTypepublic boolean isMemberClass()
JavaTypeisMemberClass in interface JavaTypeisMemberClass in class AbstractType
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||