public class InnerFunctionTypeReference extends FunctionTypeReference
LightweightTypeReference.IdentifierFunction, LightweightTypeReference.JavaIdentifierFunction, LightweightTypeReference.SimpleNameFunction, LightweightTypeReference.UniqueIdentifierFunctionresolvedKIND_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 |
|---|
InnerFunctionTypeReference(ITypeReferenceOwner owner,
LightweightTypeReference outer,
org.eclipse.xtext.common.types.JvmType type) |
| 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) |
protected void |
checkStaticFlag(org.eclipse.xtext.common.types.JvmDeclaredType type) |
protected InnerFunctionTypeReference |
doCopyInto(ITypeReferenceOwner owner) |
protected java.lang.String |
getAsString(java.lang.String type,
com.google.common.base.Function<LightweightTypeReference,java.lang.String> format) |
protected java.lang.String |
getAsStringNoFunctionType(java.lang.String type,
com.google.common.base.Function<LightweightTypeReference,java.lang.String> format) |
org.eclipse.xtext.common.types.JvmTypeReference |
getEquivalentTypeReference() |
int |
getKind()
Subclasses must override this method.
|
LightweightTypeReference |
getOuter() |
LightweightTypeReference |
getRawTypeReference() |
boolean |
hasTypeArguments() |
boolean |
isOwnedBy(ITypeReferenceOwner owner) |
boolean |
isRawType()
Returns
true is this type points to a raw type. |
boolean |
isResolved() |
boolean |
isVisible(IVisibilityHelper visibilityHelper)
Returns
true if this type is fully visible according to the given visibilityHelper. |
ParameterizedTypeReference |
toInstanceTypeReference()
Returns a projection of this type to the instance level.
|
org.eclipse.xtext.common.types.JvmTypeReference |
toJavaCompliantTypeReference(IVisibilityHelper visibilityHelper)
Converts this type reference to a
JvmTypeReference that can
be used in Java source code. |
addParameterType, copyTypeArguments, getAsFunctionTypeReference, getJavaIdentifier, getParameterTypes, getReturnType, setReturnType, toTypeReference, tryConvertToFunctionTypeReferenceaddTypeArgument, createRawTypeReference, getFunctionTypeKind, getIdentifier, getPrimitiveIfWrapperType, getPrimitiveKind, getPrimitiveKindIfWrapperType, getRawSuperType, getRawTypes, getSimpleName, getSuperType, getSuperType, getSuperTypes, getType, getTypeArguments, getUniqueIdentifier, getWrapperTypeIfPrimitive, isAnonymous, isInner, isInterfaceType, isPrimitive, isPrimitiveVoid, isType, isTypeVisible, isWrapper, tryConvertToArray, tryConvertToListTypecollectSuperTypes, collectSuperTypes, copyInto, createSubstitutor, expose, findNonNullType, findType, getAllSuperTypes, getComponentType, getHumanReadableName, getInvariantBoundSubstitute, getLowerBoundSubstitute, getMultiTypeComponents, getNamedType, getNonInterfaceTypes, getOwner, getServices, getSuperTypes, getTypesFactory, getUniqueIdentifier, getUpperBoundSubstitute, internalFindTopLevelType, internalIsAssignableFrom, isAny, isArray, isAssignableFrom, isAssignableFrom, isAssignableFrom, isAssignableFrom, isFunctionType, isMultiType, isSubtypeOf, isSubtypeOf, isSynonym, isUnknown, isValidHint, isWildcard, toJavaCompliantTypeReference, toJavaCompliantTypeReference, toJavaType, toStringpublic InnerFunctionTypeReference(ITypeReferenceOwner owner, LightweightTypeReference outer, org.eclipse.xtext.common.types.JvmType type)
protected void checkStaticFlag(org.eclipse.xtext.common.types.JvmDeclaredType type)
checkStaticFlag in class ParameterizedTypeReferencepublic int getKind()
FunctionTypeReferencegetKind in class FunctionTypeReferencepublic LightweightTypeReference getOuter()
getOuter in class LightweightTypeReferencepublic boolean hasTypeArguments()
hasTypeArguments in class LightweightTypeReferencepublic boolean isResolved()
isResolved in class ParameterizedTypeReferencepublic LightweightTypeReference getRawTypeReference()
getRawTypeReference in class ParameterizedTypeReferencepublic org.eclipse.xtext.common.types.JvmTypeReference getEquivalentTypeReference()
getEquivalentTypeReference in class FunctionTypeReferencepublic org.eclipse.xtext.common.types.JvmTypeReference toJavaCompliantTypeReference(IVisibilityHelper visibilityHelper)
LightweightTypeReferenceJvmTypeReference that can
be used in Java source code.toJavaCompliantTypeReference in class ParameterizedTypeReferencepublic boolean isRawType()
LightweightTypeReferencetrue is this type points to a raw type.
That is, it points to a parameterized type but does not define type arguments or
it points to an external type parameter that has a raw type constraint.
Type parameters that are declared by the current owner are not considered to be raw types.
A type is also a raw type if it inherits from a raw type.isRawType in class ParameterizedTypeReferencepublic boolean isOwnedBy(ITypeReferenceOwner owner)
isOwnedBy in class FunctionTypeReferencepublic 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 FunctionTypeReferenceprotected InnerFunctionTypeReference doCopyInto(ITypeReferenceOwner owner)
doCopyInto in class FunctionTypeReferenceprotected java.lang.String getAsString(java.lang.String type,
com.google.common.base.Function<LightweightTypeReference,java.lang.String> format)
getAsString in class FunctionTypeReferenceprotected java.lang.String getAsStringNoFunctionType(java.lang.String type,
com.google.common.base.Function<LightweightTypeReference,java.lang.String> format)
getAsStringNoFunctionType in class FunctionTypeReferencepublic void accept(TypeReferenceVisitor visitor)
accept in class FunctionTypeReferencepublic <Param> void accept(TypeReferenceVisitorWithParameter<Param> visitor, Param param)
accept in class FunctionTypeReferencepublic <Result> Result accept(TypeReferenceVisitorWithResult<Result> visitor)
accept in class FunctionTypeReferencepublic <Param,Result> Result accept(TypeReferenceVisitorWithParameterAndResult<Param,Result> visitor, Param param)
accept in class FunctionTypeReferencepublic ParameterizedTypeReference toInstanceTypeReference()
ParameterizedTypeReferenceArrayList<? extends Iterable<? extends String>>
is ArrayList<Iterable<? extends String>> since it is possible to create instances
of ArrayList<Iterable<? extends String>>.toInstanceTypeReference in class ParameterizedTypeReference