| Modifier and Type | Field and Description |
|---|---|
| protected ResolvedReferenceTypeDeclaration | |
| protected ResolvedTypeParametersMap |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ResolvedReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> typeArguments)
|
| Modifier and Type | Method and Description |
|---|---|
| public ResolvedReferenceType | asReferenceType()
Overrides default com. |
| protected boolean | |
| protected abstract ResolvedReferenceType | |
| protected ResolvedReferenceType | create(ResolvedReferenceTypeDeclaration typeDeclaration, ResolvedTypeParametersMap typeParametersMap)
|
| protected abstract ResolvedReferenceType | |
| private static List | |
| public abstract ResolvedReferenceType | |
| public String | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public abstract List | |
| public final List | |
| public List | |
| public final List | |
| public List | |
| public List | |
| public abstract Set | |
| public abstract Set | |
| public abstract List | getDirectAncestors()
Return direct ancestors, that means the superclasses and interfaces implemented directly. |
| public Optional | getFieldType(String name)
The type of the field could be different from the one in the corresponding FieldDeclaration because type variables would be solved. |
| public Optional | getGenericParameterByName(String name)
Get the type associated with the type parameter with the given name.
|
| public String | |
| public String | |
| public final ResolvedReferenceTypeDeclaration | |
| public List | |
| public int | |
| public boolean | |
| public abstract boolean | isAssignableBy(ResolvedType other)
Redeclares com. |
| protected boolean | |
| public boolean | |
| public final boolean | isReferenceType()
Overrides default com. |
| public ResolvedType | replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration, ResolvedType> inferredTypes)
Overrides default com. |
| public abstract ResolvedType | |
| public String | |
| public abstract ResolvedType | transformTypeParameters(ResolvedTypeTransformer transformer)
Execute a transformation on all the type parameters of this element. |
| public ResolvedTypeParametersMap | |
| public List | |
| public Optional | typeParamValue(ResolvedTypeParameterDeclaration typeParameterDeclaration)
Implements com. |
| typeDeclaration | back to summary |
|---|---|
| protected ResolvedReferenceTypeDeclaration typeDeclaration | |
| typeParametersMap | back to summary |
|---|---|
| protected ResolvedTypeParametersMap typeParametersMap | |
| ResolvedReferenceType | back to summary |
|---|---|
| public ResolvedReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration) | |
| ResolvedReferenceType | back to summary |
|---|---|
| public ResolvedReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> typeArguments) | |
| asReferenceType | back to summary |
|---|---|
| public ResolvedReferenceType asReferenceType() Overrides default com.
| |
| compareConsideringTypeParameters | back to summary |
|---|---|
| protected boolean compareConsideringTypeParameters(ResolvedReferenceType other) | |
| create | back to summary |
|---|---|
| protected abstract ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> typeParameters) | |
| create | back to summary |
|---|---|
| protected ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration, ResolvedTypeParametersMap typeParametersMap) | |
| create | back to summary |
|---|---|
| protected abstract ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration) | |
| deriveParams | back to summary |
|---|---|
| private static List | |
| deriveTypeParameters | back to summary |
|---|---|
| public abstract ResolvedReferenceType deriveTypeParameters(ResolvedTypeParametersMap typeParametersMap) | |
| describe | back to summary |
|---|---|
| public String describe() Implements com.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAllAncestors | back to summary |
|---|---|
| public abstract List Return all ancestors, that means all superclasses and interfaces. This list should always include Object (unless this is a reference to Object). The type typeParametersValues should be expressed in terms of this type typeParametersValues. For example, given: class Foo<A, B> {} class Bar<C> extends Foo<C, String> {} a call to getAllAncestors on a reference to Bar having type parameter Boolean should include Foo<Boolean, String>. | |
| getAllClassesAncestors | back to summary |
|---|---|
| public final List | |
| getAllFieldsVisibleToInheritors | back to summary |
|---|---|
| public List Fields which are visible to inheritors. They include all inherited fields which are visible to this type plus all declared fields which are not private. | |
| getAllInterfacesAncestors | back to summary |
|---|---|
| public final List | |
| getAllMethods | back to summary |
|---|---|
| public List Get a list of all the methods available on this type. This list includes methods declared in this type and methods inherited. This list includes methods of all sort of visibility. However it does not include methods that have been overwritten. | |
| getAllMethodsVisibleToInheritors | back to summary |
|---|---|
| public List | |
| getDeclaredFields | back to summary |
|---|---|
| public abstract Set Fields declared on this type. | |
| getDeclaredMethods | back to summary |
|---|---|
| public abstract Set Methods declared on this type. | |
| getDirectAncestors | back to summary |
|---|---|
| public abstract List Return direct ancestors, that means the superclasses and interfaces implemented directly. This list should include Object if the class has no other superclass or the interface is not extending another interface. There is an exception for Object itself. | |
| getFieldType | back to summary |
|---|---|
| public Optional The type of the field could be different from the one in the corresponding FieldDeclaration because type variables would be solved. | |
| getGenericParameterByName | back to summary |
|---|---|
| public Optional Get the type associated with the type parameter with the given name. It returns Optional.empty unless the type declaration declares a type parameter with the given name. | |
| getId | back to summary |
|---|---|
| public String getId() Id of the declaration. It corresponds to the qualified name, unless for local classes. | |
| getQualifiedName | back to summary |
|---|---|
| public String getQualifiedName() Qualified name of the declaration. | |
| getTypeDeclaration | back to summary |
|---|---|
| public final ResolvedReferenceTypeDeclaration getTypeDeclaration() Corresponding TypeDeclaration | |
| getTypeParametersMap | back to summary |
|---|---|
| public List Get the values for all type parameters declared on this type. In case of raw types the values correspond to TypeVariables. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasName | back to summary |
|---|---|
| public boolean hasName() Has the TypeDeclaration a name? Anonymous classes do not have one. | |
| isAssignableBy | back to summary |
|---|---|
| public abstract boolean isAssignableBy(ResolvedType other) Redeclares com. This method checks if ThisType t = new OtherType() would compile.
| |
| isCorrespondingBoxingType | back to summary |
|---|---|
| protected boolean isCorrespondingBoxingType(String typeName) | |
| isRawType | back to summary |
|---|---|
| public boolean isRawType() | |
| isReferenceType | back to summary |
|---|---|
| public final boolean isReferenceType() Overrides default com. Doc from com. Can this be seen as a ReferenceTypeUsage? In other words: is this a reference to a class, an interface or an enum?
| |
| replaceTypeVariables | back to summary |
|---|---|
| public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tpToReplace, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration, ResolvedType> inferredTypes) Overrides default com. Doc from com. Replace all variables referring to the given TypeParameter with the given value. By replacing these values I could also infer some type equivalence. Those would be collected in the given map.
| |
| toRawType | back to summary |
|---|---|
| public abstract ResolvedType toRawType() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transformTypeParameters | back to summary |
|---|---|
| public abstract ResolvedType transformTypeParameters(ResolvedTypeTransformer transformer) Execute a transformation on all the type parameters of this element. | |
| typeParametersMap | back to summary |
|---|---|
| public ResolvedTypeParametersMap typeParametersMap() Implements com.
| |
| typeParametersValues | back to summary |
|---|---|
| public List Get the values for all type parameters declared on this type. The list can be empty for raw types. | |
| typeParamValue | back to summary |
|---|---|
| public Optional Implements com. Calculate the value for the given type parameter. It could be inherited. | |