| Modifier and Type | Interface and Description |
|---|---|
interface |
ClassDeclaration
Declaration of a Class (not an interface or an enum).
|
interface |
EnumDeclaration
Declaration of an Enum.
|
interface |
InterfaceDeclaration
An interface declaration.
|
| Modifier and Type | Method and Description |
|---|---|
default TypeDeclaration |
Declaration.asType()
Return this as a TypeDeclaration or throw an UnsupportedOperationException
|
default TypeDeclaration |
TypeDeclaration.asType() |
TypeDeclaration |
FieldDeclaration.declaringType()
The type on which this field has been declared
|
TypeDeclaration |
MethodLikeDeclaration.declaringType()
The type in which the method is declared.
|
| Modifier and Type | Method and Description |
|---|---|
default Optional<TypeDeclaration> |
TypeDeclaration.containerType()
Get the TypeDeclaration enclosing this declaration.
|
default Set<TypeDeclaration> |
TypeDeclaration.internalTypes()
Get the list of types defined inside the current type.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
TypeDeclaration.canBeAssignedTo(TypeDeclaration other)
Can we assign instances of the type defined by this declaration to variables having the type defined
by the given type?
|
boolean |
TypeDeclaration.isAssignableBy(TypeDeclaration other)
Can we assign instances of the given type to variables having the type defined
by this declaration?
|
| Modifier and Type | Method and Description |
|---|---|
TypeDeclaration |
MethodUsage.declaringType() |
| Modifier and Type | Method and Description |
|---|---|
default TypeDeclaration |
TypeSolver.solveType(String name)
Solve the given type.
|
| Modifier and Type | Method and Description |
|---|---|
SymbolReference<TypeDeclaration> |
TypeSolver.tryToSolveType(String name)
Try to solve the type with the given name.
|
| Modifier and Type | Field and Description |
|---|---|
protected TypeDeclaration |
ReferenceType.typeDeclaration |
| Modifier and Type | Method and Description |
|---|---|
TypeDeclaration |
ReferenceType.getTypeDeclaration()
Corresponding TypeDeclaration
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ReferenceType |
ReferenceType.create(TypeDeclaration typeDeclaration,
List<Type> typeParameters,
TypeSolver typeSolver) |
protected ReferenceType |
ReferenceType.create(TypeDeclaration typeDeclaration,
TypeParametersMap typeParametersMap,
TypeSolver typeSolver) |
protected abstract ReferenceType |
ReferenceType.create(TypeDeclaration typeDeclaration,
TypeSolver typeSolver) |
| Constructor and Description |
|---|
ReferenceType(TypeDeclaration typeDeclaration,
List<Type> typeParameters,
TypeSolver typeSolver) |
ReferenceType(TypeDeclaration typeDeclaration,
TypeSolver typeSolver) |
Copyright © 2016. All rights reserved.