Package org.eclipse.xtend.core.jvmmodel
Class IXtendJvmAssociations.Impl
- java.lang.Object
-
- org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator
-
- org.eclipse.xtend.core.jvmmodel.IXtendJvmAssociations.Impl
-
- All Implemented Interfaces:
IXtendJvmAssociations
,org.eclipse.xtext.resource.IDerivedStateComputer
,org.eclipse.xtext.xbase.jvmmodel.IJvmModelAssociations
,org.eclipse.xtext.xbase.jvmmodel.IJvmModelAssociator
,org.eclipse.xtext.xbase.jvmmodel.ILogicalContainerProvider
- Enclosing interface:
- IXtendJvmAssociations
public static class IXtendJvmAssociations.Impl extends org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator implements IXtendJvmAssociations
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator
org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.Adapter, org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.JvmDeclaredTypeAcceptor, org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.ListBasedSet<E extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.eclipse.xtend.core.jvmmodel.IXtendJvmAssociations
IXtendJvmAssociations.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnonymousClass
getAnonymousClass(org.eclipse.xtext.common.types.JvmDeclaredType type)
org.eclipse.xtext.common.types.JvmOperation
getDirectlyInferredOperation(XtendFunction xtendFunction)
Returns the directly inferred operation for the given function.org.eclipse.xtext.common.types.JvmOperation
getDispatchOperation(XtendFunction dispatchFunction)
protected <T> T
getFirstOrNull(java.lang.Iterable<org.eclipse.emf.ecore.EObject> elements, java.lang.Class<T> type)
org.eclipse.xtext.common.types.JvmAnnotationType
getInferredAnnotationType(XtendAnnotationType xtendAnnotation)
org.eclipse.xtext.common.types.JvmConstructor
getInferredConstructor(XtendClass xtendClass)
org.eclipse.xtext.common.types.JvmConstructor
getInferredConstructor(XtendConstructor xtendConstructor)
org.eclipse.xtext.common.types.JvmEnumerationType
getInferredEnumerationType(XtendEnum xtendEnum)
org.eclipse.xtext.common.types.JvmGenericType
getInferredType(AnonymousClass anonymousClass)
org.eclipse.xtext.common.types.JvmGenericType
getInferredType(XtendClass xtendClass)
org.eclipse.xtext.common.types.JvmGenericType
getInferredType(XtendInterface xtendInterface)
org.eclipse.xtext.common.types.JvmDeclaredType
getInferredType(XtendTypeDeclaration xtendType)
org.eclipse.xtext.common.types.JvmField
getJvmField(XtendEnumLiteral field)
org.eclipse.xtext.common.types.JvmField
getJvmField(XtendField field)
org.eclipse.xtext.common.types.JvmFormalParameter
getJvmParameter(XtendParameter parameter)
protected org.eclipse.xtext.common.types.JvmIdentifiableElement
getLogicalContainer(org.eclipse.emf.ecore.EObject object, boolean considerContainer)
XtendClass
getXtendClass(org.eclipse.xtext.common.types.JvmGenericType jvmType)
XtendConstructor
getXtendConstructor(org.eclipse.xtext.common.types.JvmConstructor jvmConstructor)
XtendField
getXtendField(org.eclipse.xtext.common.types.JvmField jvmField)
XtendFunction
getXtendFunction(org.eclipse.xtext.common.types.JvmOperation jvmOperation)
XtendInterface
getXtendInterface(org.eclipse.xtext.common.types.JvmGenericType jvmType)
-
Methods inherited from class org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator
associate, associateLogicalContainer, associatePrimary, checkLanguageResource, checkSameResource, cleanAssociationState, discardDerivedState, getAssociatedExpression, getJvmElements, getLogicalContainer, getLogicalContainerMapping, getNearestLogicalContainer, getOrInstall, getPrimaryJvmElement, getPrimarySourceElement, getResource, getSourceElements, installDerivedState, isPrimaryJvmElement, putIntoSmallSetMap, putIntoSmallSetMap, removeAllAssociation, removeAssociation, removeLogicalChildAssociation, setCompleter, setInferrerProvider, sourceToTargetMap, targetToSourceMap
-
-
-
-
Method Detail
-
getInferredType
public org.eclipse.xtext.common.types.JvmDeclaredType getInferredType(XtendTypeDeclaration xtendType)
- Specified by:
getInferredType
in interfaceIXtendJvmAssociations
-
getInferredType
public org.eclipse.xtext.common.types.JvmGenericType getInferredType(AnonymousClass anonymousClass)
- Specified by:
getInferredType
in interfaceIXtendJvmAssociations
-
getInferredType
public org.eclipse.xtext.common.types.JvmGenericType getInferredType(XtendClass xtendClass)
- Specified by:
getInferredType
in interfaceIXtendJvmAssociations
-
getInferredType
public org.eclipse.xtext.common.types.JvmGenericType getInferredType(XtendInterface xtendInterface)
- Specified by:
getInferredType
in interfaceIXtendJvmAssociations
-
getInferredAnnotationType
public org.eclipse.xtext.common.types.JvmAnnotationType getInferredAnnotationType(XtendAnnotationType xtendAnnotation)
- Specified by:
getInferredAnnotationType
in interfaceIXtendJvmAssociations
-
getInferredEnumerationType
public org.eclipse.xtext.common.types.JvmEnumerationType getInferredEnumerationType(XtendEnum xtendEnum)
- Specified by:
getInferredEnumerationType
in interfaceIXtendJvmAssociations
-
getInferredConstructor
public org.eclipse.xtext.common.types.JvmConstructor getInferredConstructor(XtendClass xtendClass)
- Specified by:
getInferredConstructor
in interfaceIXtendJvmAssociations
-
getInferredConstructor
public org.eclipse.xtext.common.types.JvmConstructor getInferredConstructor(XtendConstructor xtendConstructor)
- Specified by:
getInferredConstructor
in interfaceIXtendJvmAssociations
-
getDirectlyInferredOperation
public org.eclipse.xtext.common.types.JvmOperation getDirectlyInferredOperation(XtendFunction xtendFunction)
Description copied from interface:IXtendJvmAssociations
Returns the directly inferred operation for the given function. If possible, this method returns an operation with exactly the same name as thextendFunction
, otherwise the first associated JVM operation.null
is returned if there is no associated operation.If the function is a dispatch function, the dispatch case is returned and not the dispatcher.
If the function is a create function, the public visible function is returned and not the synthetic initializer function.
- Specified by:
getDirectlyInferredOperation
in interfaceIXtendJvmAssociations
- See Also:
IXtendJvmAssociations.getDispatchOperation(XtendFunction)
-
getDispatchOperation
public org.eclipse.xtext.common.types.JvmOperation getDispatchOperation(XtendFunction dispatchFunction)
- Specified by:
getDispatchOperation
in interfaceIXtendJvmAssociations
-
getXtendClass
public XtendClass getXtendClass(org.eclipse.xtext.common.types.JvmGenericType jvmType)
- Specified by:
getXtendClass
in interfaceIXtendJvmAssociations
-
getAnonymousClass
public AnonymousClass getAnonymousClass(org.eclipse.xtext.common.types.JvmDeclaredType type)
- Specified by:
getAnonymousClass
in interfaceIXtendJvmAssociations
-
getXtendInterface
public XtendInterface getXtendInterface(org.eclipse.xtext.common.types.JvmGenericType jvmType)
- Specified by:
getXtendInterface
in interfaceIXtendJvmAssociations
-
getXtendFunction
public XtendFunction getXtendFunction(org.eclipse.xtext.common.types.JvmOperation jvmOperation)
- Specified by:
getXtendFunction
in interfaceIXtendJvmAssociations
-
getXtendConstructor
public XtendConstructor getXtendConstructor(org.eclipse.xtext.common.types.JvmConstructor jvmConstructor)
- Specified by:
getXtendConstructor
in interfaceIXtendJvmAssociations
-
getFirstOrNull
protected <T> T getFirstOrNull(java.lang.Iterable<org.eclipse.emf.ecore.EObject> elements, java.lang.Class<T> type)
-
getJvmField
public org.eclipse.xtext.common.types.JvmField getJvmField(XtendField field)
- Specified by:
getJvmField
in interfaceIXtendJvmAssociations
-
getJvmField
public org.eclipse.xtext.common.types.JvmField getJvmField(XtendEnumLiteral field)
- Specified by:
getJvmField
in interfaceIXtendJvmAssociations
-
getJvmParameter
public org.eclipse.xtext.common.types.JvmFormalParameter getJvmParameter(XtendParameter parameter)
- Specified by:
getJvmParameter
in interfaceIXtendJvmAssociations
-
getXtendField
public XtendField getXtendField(org.eclipse.xtext.common.types.JvmField jvmField)
- Specified by:
getXtendField
in interfaceIXtendJvmAssociations
-
getLogicalContainer
protected org.eclipse.xtext.common.types.JvmIdentifiableElement getLogicalContainer(org.eclipse.emf.ecore.EObject object, boolean considerContainer)
- Overrides:
getLogicalContainer
in classorg.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator
-
-