public class UnknownTypeReference extends LightweightTypeReference
LightweightTypeReference.IdentifierFunction, LightweightTypeReference.JavaIdentifierFunction, LightweightTypeReference.SimpleNameFunction, LightweightTypeReference.UniqueIdentifierFunctionKIND_ANY_TYPE_REFERENCE, KIND_ARRAY_TYPE_REFERENCE, KIND_COMPOUND_TYPE_REFERENCE, KIND_FUNCTION_TYPE_REFERENCE, KIND_INNER_FUNCTION_TYPE_REFERENCE, KIND_INNER_TYPE_REFERENCE, KIND_LIGHTWEIGHT_TYPE_REFERENCE, KIND_PARAMETERIZED_TYPE_REFERENCE, KIND_UNBOUND_TYPE_REFERENCE, KIND_UNKNOWN_TYPE_REFERENCE, KIND_WILDCARD_TYPE_REFERENCE| Constructor and Description |
|---|
UnknownTypeReference(ITypeReferenceOwner owner) |
UnknownTypeReference(ITypeReferenceOwner owner,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TypeReferenceVisitor visitor) |
<Param> void |
accept(TypeReferenceVisitorWithParameter<Param> visitor,
Param param) |
<Param,Result> |
accept(TypeReferenceVisitorWithParameterAndResult<Param,Result> visitor,
Param param) |
<Result> Result |
accept(TypeReferenceVisitorWithResult<Result> visitor) |
void |
collectSuperTypes(SuperTypeAcceptor acceptor) |
protected LightweightTypeReference |
doCopyInto(ITypeReferenceOwner owner) |
java.lang.String |
getIdentifier()
Returns the identifier of this type reference.
|
java.lang.String |
getJavaIdentifier() |
int |
getKind()
Subclasses must override this method.
|
java.lang.String |
getSimpleName()
Prints the simple name of this type reference.
|
protected java.util.List<LightweightTypeReference> |
getSuperTypes(TypeParameterSubstitutor<?> substitutor) |
org.eclipse.xtext.common.types.JvmType |
getType() |
java.lang.String |
getUniqueIdentifier()
Returns an identifier that allows to disambiguate type parameter names that have
different origins.
|
boolean |
isType(java.lang.Class<?> clazz)
Returns true if this type reference represents an type with the given
raw type
clazz. |
boolean |
isUnknown() |
boolean |
isVisible(IVisibilityHelper visibilityHelper)
Returns
true if this type is fully visible according to the given visibilityHelper. |
org.eclipse.xtext.common.types.JvmTypeReference |
toJavaCompliantTypeReference(IVisibilityHelper visibilityHelper)
Converts this type reference to a
JvmTypeReference that can
be used in Java source code. |
org.eclipse.xtext.common.types.JvmTypeReference |
toTypeReference() |
collectSuperTypes, copyInto, createSubstitutor, expose, findNonNullType, findType, getAllSuperTypes, getAsFunctionTypeReference, getComponentType, getFunctionTypeKind, getHumanReadableName, getInvariantBoundSubstitute, getLowerBoundSubstitute, getMultiTypeComponents, getNamedType, getNonInterfaceTypes, getOuter, getOwner, getPrimitiveIfWrapperType, getPrimitiveKind, getPrimitiveKindIfWrapperType, getRawTypeReference, getRawTypes, getServices, getSuperType, getSuperType, getSuperTypes, getTypeArguments, getTypesFactory, getUniqueIdentifier, getUpperBoundSubstitute, getWrapperTypeIfPrimitive, hasTypeArguments, internalFindTopLevelType, internalIsAssignableFrom, isAnonymous, isAny, isArray, isAssignableFrom, isAssignableFrom, isAssignableFrom, isAssignableFrom, isFunctionType, isInterfaceType, isMultiType, isOwnedBy, isPrimitive, isPrimitiveVoid, isRawType, isResolved, isSubtypeOf, isSubtypeOf, isSynonym, isValidHint, isWildcard, isWrapper, toJavaCompliantTypeReference, toJavaCompliantTypeReference, toJavaType, toString, tryConvertToArray, tryConvertToFunctionTypeReference, tryConvertToListTypepublic UnknownTypeReference(ITypeReferenceOwner owner, java.lang.String name)
public UnknownTypeReference(ITypeReferenceOwner owner)
public int getKind()
getKind in class LightweightTypeReferencepublic boolean isUnknown()
isUnknown in class LightweightTypeReferencepublic boolean isVisible(IVisibilityHelper visibilityHelper)
LightweightTypeReferencetrue if this type is fully visible according to the given visibilityHelper.
All components and bounds are taken into account, e.g.
arrays use their component type
and generified types check their type arguments, too.isVisible in class LightweightTypeReferencepublic org.eclipse.xtext.common.types.JvmTypeReference toTypeReference()
toTypeReference in class LightweightTypeReferencepublic org.eclipse.xtext.common.types.JvmTypeReference toJavaCompliantTypeReference(IVisibilityHelper visibilityHelper)
LightweightTypeReferenceJvmTypeReference that can
be used in Java source code.toJavaCompliantTypeReference in class LightweightTypeReferencepublic org.eclipse.xtext.common.types.JvmType getType()
getType in class LightweightTypeReferenceprotected java.util.List<LightweightTypeReference> getSuperTypes(TypeParameterSubstitutor<?> substitutor)
getSuperTypes in class LightweightTypeReferenceprotected LightweightTypeReference doCopyInto(ITypeReferenceOwner owner)
doCopyInto in class LightweightTypeReferencepublic java.lang.String getSimpleName()
LightweightTypeReferencegetSimpleName in class LightweightTypeReferencepublic java.lang.String getIdentifier()
LightweightTypeReferencegetIdentifier in class LightweightTypeReferencepublic java.lang.String getUniqueIdentifier()
LightweightTypeReferencegetUniqueIdentifier in class LightweightTypeReferencepublic java.lang.String getJavaIdentifier()
getJavaIdentifier in class LightweightTypeReferencepublic boolean isType(java.lang.Class<?> clazz)
LightweightTypeReferenceclazz.
Returns false if this is not exactly the given type, but a sub type, a
super type or a completely unrelated type.isType in class LightweightTypeReferencepublic void collectSuperTypes(SuperTypeAcceptor acceptor)
collectSuperTypes in class LightweightTypeReferencepublic void accept(TypeReferenceVisitor visitor)
accept in class LightweightTypeReferencepublic <Param> void accept(TypeReferenceVisitorWithParameter<Param> visitor, Param param)
accept in class LightweightTypeReferencepublic <Result> Result accept(TypeReferenceVisitorWithResult<Result> visitor)
accept in class LightweightTypeReferencepublic <Param,Result> Result accept(TypeReferenceVisitorWithParameterAndResult<Param,Result> visitor, Param param)
accept in class LightweightTypeReference