|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassT
A type declaration. These include: "class" type, "interface" type, "enum" type, "annotation" type.
Nested Class Summary | |
---|---|
static class |
ClassT.ClassKind An enumeration identifying which kind of type declaration this is. |
Field Summary | |
---|---|
static ClassT[] |
EMPTY_ARRAY |
Method Summary | |
---|---|
ClassBodyT |
getClassBody() Gets the class body. |
ClassT |
getDeclaredClass(java.lang.String name) Gets the matching member class declarations. |
java.util.List |
getDeclaredClasses() Gets the list of member class declarations. |
java.util.List |
getDeclaredConstructors() Gets the list of declared constructor declarations. |
java.util.List |
getDeclaredEnumConstants() Gets the list of enum constants. |
java.util.List |
getDeclaredFieldDeclarations() Gets the list of declared field declarations. |
java.util.Collection |
getDeclaredFieldVariables() Gets the collection of declared field variables. |
java.util.List |
getDeclaredInitializers() Gets the list of declared class initializers. |
java.util.List |
getDeclaredMembers() Gets the list of declared member declarations. |
MemberVariableT |
getDeclaredMemberVariable(java.lang.String name) Gets the matching declared field variable or enum constant, null if none. |
java.util.Collection |
getDeclaredMemberVariables() Gets the collection of declared field variables and enum constants. |
java.util.List |
getDeclaredMethods() Gets the list of declared method (but not constructor) declarations. |
java.util.Collection |
getDeclaredMethods(java.lang.String name) Gets the collection of matching methods (but not constructor) declarations. |
java.util.List |
getInterfaces() Gets the list of declared interfaces. |
InterfacesT |
getInterfacesClause() Gets the interfaces declaration. |
MemberT |
getOwningMember() Gets the owning member declaration, null if none. |
PackageT |
getPackageDeclaration() Gets the owning package declaration, null if none.. |
java.lang.String |
getPackageName() Gets the owning package name, empty if none. |
TypeReferenceT |
getSuperclass() Gets the declared superclass. |
SuperclassT |
getSuperclassClause() Gets the superclass declaration. |
ClassT.ClassKind |
getTypeKind() Identifies what kind of class declaration this is. |
java.util.List |
getTypeParameters() Gets the ordered list of type parameters declared on this class. |
boolean |
isAnnotation() True if this is an annotation type. |
boolean |
isAnonymous() True if this is an anonymous class declaration. |
boolean |
isClass() True if this is a class or an enum type. |
boolean |
isEnum() True if this is an enum type. |
boolean |
isExported() |
boolean |
isInnerClass() True if this is an inner class. |
boolean |
isInterface() True if this is an interface or an annotation type. |
void |
setSuperclass(TypeReferenceT superclass) Attempts to set the declared base class of this class. |
void |
setTypeKind(ClassT.ClassKind typeKind) Attempts to change the type of class this is. |
Methods inherited from interface javax.ide.model.java.source.tree.MemberT |
---|
getBlock, getDeclaringClass, getDocComment, setBlock, setDocComment |
Methods inherited from interface javax.ide.model.java.source.tree.HasModifiersT |
---|
addModifiers, getAnnotations, getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isStrictfp, removeModifiers, setModifiers |
Methods inherited from interface javax.ide.model.java.source.tree.Tree |
---|
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
Methods inherited from interface javax.ide.model.java.source.tree.HasNameT |
---|
getName, getNameElement, setName, setNameElement |
Field Detail |
---|
static final ClassT[] EMPTY_ARRAY
Method Detail |
---|
ClassT.ClassKind getTypeKind()
void setTypeKind(ClassT.ClassKind typeKind)
TY_CLASS: "class". TY_ENUM: "enum". TY_INTERFACE: "interface". TY_ANNOTATE: "@interface".
boolean isClass()
boolean isInterface()
boolean isEnum()
boolean isAnnotation()
PackageT getPackageDeclaration()
java.lang.String getPackageName()
boolean isInnerClass()
boolean isExported()
boolean isAnonymous()
SuperclassT getSuperclassClause()
InterfacesT getInterfacesClause()
ClassBodyT getClassBody()
java.util.List getTypeParameters()
For classes, syntax is "javadoc mods class name <ty_params> {}".
List of TypeParameterTs.
TypeReferenceT getSuperclass()
void setSuperclass(TypeReferenceT superclass)
java.lang.UnsupportedOperationException
- if this class may not have a superclass.java.lang.IllegalStateException
- if the input element is already linked.java.util.List getInterfaces()
On a "class" or "enum" type, this will be the "implements" types. On an "interface" type, this will be the "extends" types.
List of TypeReferenceTs.
java.util.List getDeclaredMembers()
List of MemberTs.
java.util.Collection getDeclaredMemberVariables()
Collection of MemberVariableTs.
MemberVariableT getDeclaredMemberVariable(java.lang.String name)
name
- The field or enum constant name to match. Require non-null.java.util.List getDeclaredEnumConstants()
java.util.List getDeclaredFieldDeclarations()
List of FieldDeclTs.
java.util.Collection getDeclaredFieldVariables()
Collection of FieldVariableTs.
java.util.List getDeclaredMethods()
List of MethodTs.
java.util.Collection getDeclaredMethods(java.lang.String name)
name
- The method name to match. Require non-null.Collection of MethodTs.
java.util.List getDeclaredConstructors()
List of MethodTs.
java.util.List getDeclaredClasses()
List of ClassTs.
ClassT getDeclaredClass(java.lang.String name)
name
- The class name to match.java.util.List getDeclaredInitializers()
List of ClassInitializerTs.
MemberT getOwningMember()
The Java VM spec 3rd ed requires that local and anonymous classes have an attribute specifying the enclosing method. At a source level, we'll return the owning member.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |