| Modifier and Type | Method and Description |
|---|---|
| public default ResolvedClassDeclaration | |
| public default ResolvedEnumDeclaration | |
| public default ResolvedInterfaceDeclaration | |
| public default ResolvedReferenceTypeDeclaration | |
| public default ResolvedTypeDeclaration | asType()
Overrides default com. |
| public default ResolvedTypeParameterDeclaration | |
| public Optional | |
| public String | |
| public default String | |
| public default ResolvedReferenceTypeDeclaration | |
| public String | |
| public String | |
| public default boolean | |
| public default Set | |
| public default boolean | |
| public default boolean | |
| public default boolean | |
| public default boolean | |
| public default boolean | isType()
Overrides default com. |
| public default boolean |
| asClass | back to summary |
|---|---|
| public default ResolvedClassDeclaration asClass() Return this as a ClassDeclaration or throw UnsupportedOperationException. | |
| asEnum | back to summary |
|---|---|
| public default ResolvedEnumDeclaration asEnum() Return this as a EnumDeclaration or throw UnsupportedOperationException. | |
| asInterface | back to summary |
|---|---|
| public default ResolvedInterfaceDeclaration asInterface() Return this as a InterfaceDeclaration or throw UnsupportedOperationException. | |
| asReferenceType | back to summary |
|---|---|
| public default ResolvedReferenceTypeDeclaration asReferenceType() | |
| asType | back to summary |
|---|---|
| public default ResolvedTypeDeclaration asType() Overrides default com. Doc from com. Return this as a TypeDeclaration or throw an UnsupportedOperationException
| |
| asTypeParameter | back to summary |
|---|---|
| public default ResolvedTypeParameterDeclaration asTypeParameter() Return this as a TypeParameterDeclaration or throw UnsupportedOperationException. | |
| containerType | back to summary |
|---|---|
| public Optional Get the ReferenceTypeDeclaration enclosing this declaration. | |
| getClassName | back to summary |
|---|---|
| public String getClassName() The class(es) wrapping this type. | |
| getId | back to summary |
|---|---|
| public default String getId() The ID corresponds most of the type to the qualified name. It differs only for local classes which do not have a qualified name but have an ID. | |
| getInternalType | back to summary |
|---|---|
| public default ResolvedReferenceTypeDeclaration getInternalType(String name) Returns a type declaration for the internal type based on name. (Does not include internal types inside internal types). | |
| getPackageName | back to summary |
|---|---|
| public String getPackageName() The package name of the type. | |
| getQualifiedName | back to summary |
|---|---|
| public String getQualifiedName() The fully qualified name of the type declared. | |
| hasInternalType | back to summary |
|---|---|
| public default boolean hasInternalType(String name) Does this type contain an internal type with the given name? (Does not include internal types inside internal types). | |
| internalTypes | back to summary |
|---|---|
| public default Set Get the list of types defined inside the current type. | |
| isAnonymousClass | back to summary |
|---|---|
| public default boolean isAnonymousClass() Is this type declaration corresponding to an anonymous class? This is an example of anonymous class:
HelloWorld frenchGreeting = new HelloWorld() {
String name = "tout le monde";
public void greet() {
greetSomeone("tout le monde");
}
public void greetSomeone(String someone) {
name = someone;
System.out.println("Salut " + name);
}
};
| |
| isClass | back to summary |
|---|---|
| public default boolean isClass() Is this the declaration of a class? Note that an Enum is not considered a Class in this case. | |
| isEnum | back to summary |
|---|---|
| public default boolean isEnum() Is this the declaration of an enum? | |
| isInterface | back to summary |
|---|---|
| public default boolean isInterface() Is this the declaration of an interface? | |
| isType | back to summary |
|---|---|
| public default boolean isType() Overrides default com. Doc from com. Does this declaration represents a type?
| |
| isTypeParameter | back to summary |
|---|---|
| public default boolean isTypeParameter() Is this the declaration of a type parameter? | |