Class JavaType
java.lang.Object
uno.anahata.ai.nb.model.java2.JavaType
- Direct Known Subclasses:
JavaMember
A lightweight, serializable "keychain" DTO that uniquely identifies a Java type.
It holds an ElementHandle and a URL to the class file.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaType(org.netbeans.modules.java.source.ui.JavaTypeDescription descriptor) Constructs a new JavaType from a JavaTypeDescription. -
Method Summary
Modifier and TypeMethodDescriptionorg.openide.filesystems.FileObjectResolves the URL back to a FileObject representing the class file.Gets the Javadoc for this type.Gets the members of this type using a universal, ClassIndex-based approach.Gets the source information for this type.
-
Constructor Details
-
JavaType
public JavaType(org.netbeans.modules.java.source.ui.JavaTypeDescription descriptor) Constructs a new JavaType from a JavaTypeDescription.- Parameters:
descriptor- the type descriptor.
-
-
Method Details
-
getClassFileObject
-
getSource
Gets the source information for this type.- Returns:
- a JavaTypeSource object.
- Throws:
Exception- if the source cannot be found.
-
getJavadoc
Gets the Javadoc for this type.- Returns:
- a JavaTypeDocs object.
- Throws:
Exception- if the Javadoc cannot be retrieved.
-
getMembers
Gets the members of this type using a universal, ClassIndex-based approach.- Returns:
- An unmodifiable list of JavaMembers.
- Throws:
Exception- if the members cannot be retrieved.
-
