Package | Description |
---|---|
javax.ide.model.java |
The interfaces and classes implementing an IDE's java model.
|
javax.ide.model.java.declaration |
Declaration model.
|
javax.ide.model.java.source |
Various interfaces for use with Tree objects.
|
Modifier and Type | Method and Description |
---|---|
TypeD |
JavaModel.getArrayType(TypeD componentType,
int dims)
Fetches a TypeD for the given array type of the specified component
type an dimensions.
|
TypeD |
JavaModel.getParameterizedType(TypeD baseType,
TypeD[] arguments)
Fetches a TypeD for the given parameterized type.
|
Modifier and Type | Method and Description |
---|---|
TypeD |
JavaModel.getArrayType(TypeD componentType,
int dims)
Fetches a TypeD for the given array type of the specified component
type an dimensions.
|
TypeD |
JavaModel.getParameterizedType(TypeD baseType,
TypeD[] arguments)
Fetches a TypeD for the given parameterized type.
|
TypeD |
JavaModel.getParameterizedType(TypeD baseType,
TypeD[] arguments)
Fetches a TypeD for the given parameterized type.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ArrayTypeD
Represents an array type.
|
interface |
ClassD
Represents a primitive, class, interface, enum, or annotation
type.
|
interface |
TypeVariableD
Represents a type variable.
|
interface |
WildcardTypeD
Represents a wildcard type.
|
Modifier and Type | Field and Description |
---|---|
static TypeD[] |
TypeD.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
TypeD |
AnnotationD.getAnnotationType()
Gets the annotation type of this annotation.
|
TypeD |
ArrayTypeD.getComponentType() |
TypeD |
MethodD.getReturnType()
Gets the return type.
|
TypeD |
TypeD.getSuperclass()
Gets this type's superclass.
|
TypeD |
TypeD.getType()
Gets itself as its type.
|
TypeD |
HasTypeD.getType()
Gets the type of this element.
|
Modifier and Type | Method and Description |
---|---|
ConstructorD |
TypeD.getDeclaredConstructor(TypeD[] parameters)
Gets the matching declared constructor, null if none.
|
MethodD |
TypeD.getDeclaredMethod(java.lang.String name,
TypeD[] parameters)
Gets the matching declared method, null if none.
|
MethodD |
TypeD.getMethod(java.lang.String name,
TypeD[] parameters)
Gets the first matching method, null if none.
|
boolean |
TypeD.isAssignableFrom(TypeD subject)
True if this type is assignable from the subject type.
|
Modifier and Type | Method and Description |
---|---|
TypeD |
TreeResolver.getResolvedType(Tree tree)
Resolves this tree into a type reference.
|