public class LightweightTypeReferenceFactory extends AbstractXtypeReferenceVisitor<LightweightTypeReference>
StandardTypeReferenceOwner to
provide instances of LightweightTypeReference. Clients may use a custom
implementation of this factory and configure it with a StandardTypeReferenceOwner.| Constructor and Description |
|---|
LightweightTypeReferenceFactory(ITypeReferenceOwner owner)
.
|
LightweightTypeReferenceFactory(ITypeReferenceOwner owner,
boolean keepUnboundWildcards) |
| Modifier and Type | Method and Description |
|---|---|
LightweightTypeReference |
doVisitAnyTypeReference(org.eclipse.xtext.common.types.JvmAnyTypeReference reference) |
protected LightweightTypeReference |
doVisitCompoundReference(org.eclipse.xtext.common.types.JvmCompoundTypeReference reference,
boolean synonym) |
LightweightTypeReference |
doVisitComputedTypeReference(XComputedTypeReference reference) |
LightweightTypeReference |
doVisitFunctionTypeReference(XFunctionTypeRef reference) |
LightweightTypeReference |
doVisitGenericArrayTypeReference(org.eclipse.xtext.common.types.JvmGenericArrayTypeReference reference) |
LightweightTypeReference |
doVisitInnerTypeReference(org.eclipse.xtext.common.types.JvmInnerTypeReference reference) |
LightweightTypeReference |
doVisitMultiTypeReference(org.eclipse.xtext.common.types.JvmMultiTypeReference reference) |
LightweightTypeReference |
doVisitParameterizedTypeReference(org.eclipse.xtext.common.types.JvmParameterizedTypeReference reference) |
LightweightTypeReference |
doVisitSynonymTypeReference(org.eclipse.xtext.common.types.JvmSynonymTypeReference reference) |
LightweightTypeReference |
doVisitTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference) |
LightweightTypeReference |
doVisitUnknownTypeReference(org.eclipse.xtext.common.types.JvmUnknownTypeReference reference) |
LightweightTypeReference |
doVisitWildcardTypeReference(org.eclipse.xtext.common.types.JvmWildcardTypeReference reference) |
protected LightweightTypeReference |
getObjectReference() |
protected org.eclipse.xtext.common.types.JvmType |
getObjectType() |
ITypeReferenceOwner |
getOwner() |
protected org.eclipse.xtext.common.types.JvmType |
getType(org.eclipse.xtext.common.types.JvmTypeReference reference) |
protected LightweightTypeReference |
handleNullReference() |
protected boolean |
isInner(org.eclipse.xtext.common.types.JvmType type) |
LightweightTypeReference |
toLightweightReference(org.eclipse.xtext.common.types.JvmType type) |
LightweightTypeReference |
toLightweightReference(org.eclipse.xtext.common.types.JvmTypeReference reference) |
LightweightTypeReference |
toPlainTypeReference(org.eclipse.xtext.common.types.JvmType type) |
doVisitCompoundTypeReferencedoVisitDelegateTypeReference, doVisitSpecializedTypeReference, visitpublic LightweightTypeReferenceFactory(ITypeReferenceOwner owner)
new OwnedConverter(owner, false).public LightweightTypeReferenceFactory(ITypeReferenceOwner owner, boolean keepUnboundWildcards)
keepUnboundWildcards - true if unbound wildcards should be converted to ? extends Object.
Unbound information is required to do proper cast validation. In other cases, the compiler should
add the upper bound object.WildcardType.getUpperBounds()public ITypeReferenceOwner getOwner()
public LightweightTypeReference toLightweightReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
public LightweightTypeReference toLightweightReference(org.eclipse.xtext.common.types.JvmType type)
public LightweightTypeReference toPlainTypeReference(org.eclipse.xtext.common.types.JvmType type)
public LightweightTypeReference doVisitAnyTypeReference(org.eclipse.xtext.common.types.JvmAnyTypeReference reference)
doVisitAnyTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitAnyTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>public LightweightTypeReference doVisitGenericArrayTypeReference(org.eclipse.xtext.common.types.JvmGenericArrayTypeReference reference)
doVisitGenericArrayTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitGenericArrayTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>public LightweightTypeReference doVisitMultiTypeReference(org.eclipse.xtext.common.types.JvmMultiTypeReference reference)
doVisitMultiTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitMultiTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>protected LightweightTypeReference doVisitCompoundReference(org.eclipse.xtext.common.types.JvmCompoundTypeReference reference, boolean synonym)
public LightweightTypeReference doVisitComputedTypeReference(XComputedTypeReference reference)
doVisitComputedTypeReference in interface XtypeReferenceVisitor<LightweightTypeReference>doVisitComputedTypeReference in class AbstractXtypeReferenceVisitor<LightweightTypeReference>public LightweightTypeReference doVisitParameterizedTypeReference(org.eclipse.xtext.common.types.JvmParameterizedTypeReference reference)
doVisitParameterizedTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitParameterizedTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>protected boolean isInner(org.eclipse.xtext.common.types.JvmType type)
public LightweightTypeReference doVisitInnerTypeReference(org.eclipse.xtext.common.types.JvmInnerTypeReference reference)
doVisitInnerTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitInnerTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>protected org.eclipse.xtext.common.types.JvmType getType(org.eclipse.xtext.common.types.JvmTypeReference reference)
public LightweightTypeReference doVisitSynonymTypeReference(org.eclipse.xtext.common.types.JvmSynonymTypeReference reference)
doVisitSynonymTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitSynonymTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>public LightweightTypeReference doVisitWildcardTypeReference(org.eclipse.xtext.common.types.JvmWildcardTypeReference reference)
doVisitWildcardTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitWildcardTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>public LightweightTypeReference doVisitFunctionTypeReference(XFunctionTypeRef reference)
doVisitFunctionTypeReference in interface XtypeReferenceVisitor<LightweightTypeReference>doVisitFunctionTypeReference in class AbstractXtypeReferenceVisitor<LightweightTypeReference>public LightweightTypeReference doVisitUnknownTypeReference(org.eclipse.xtext.common.types.JvmUnknownTypeReference reference)
doVisitUnknownTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitUnknownTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>protected LightweightTypeReference handleNullReference()
handleNullReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor<LightweightTypeReference>protected LightweightTypeReference getObjectReference()
protected org.eclipse.xtext.common.types.JvmType getObjectType()
public LightweightTypeReference doVisitTypeReference(org.eclipse.xtext.common.types.JvmTypeReference reference)
doVisitTypeReference in interface org.eclipse.xtext.common.types.util.ITypeReferenceVisitor<LightweightTypeReference>doVisitTypeReference in class org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.InheritanceAware<LightweightTypeReference>