Class MethodImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEObjectImpl
-
- org.emftext.language.java.commons.impl.CommentableImpl
-
- org.emftext.language.java.commons.impl.NamedElementImpl
-
- org.emftext.language.java.members.impl.MemberImpl
-
- org.emftext.language.java.members.impl.MethodImpl
-
- All Implemented Interfaces:
Notifier
,EObject
,EStructuralFeature.Internal.DynamicValueHolder
,InternalEObject
,ArrayTypeable
,Commentable
,NamedElement
,TypeParametrizable
,ExceptionThrower
,Member
,Method
,AnnotableAndModifiable
,Parametrizable
,ReferenceableElement
,StatementContainer
,TypedElement
- Direct Known Subclasses:
ClassMethodImpl
,InterfaceMethodImpl
public abstract class MethodImpl extends MemberImpl implements Method
An implementation of the model object 'Method'.The following features are implemented:
- Generated class or method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.Container
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterList
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
-
-
Field Summary
Fields Modifier and Type Field Description protected EList<AnnotationInstanceOrModifier>
annotationsAndModifiers
The cached value of the 'Annotations And Modifiers
' containment reference list.protected EList<ArrayDimension>
arrayDimensionsAfter
The cached value of the 'Array Dimensions After
' containment reference list.protected EList<ArrayDimension>
arrayDimensionsBefore
The cached value of the 'Array Dimensions Before
' containment reference list.protected EList<NamespaceClassifierReference>
exceptions
The cached value of the 'Exceptions
' containment reference list.protected EList<Parameter>
parameters
The cached value of the 'Parameters
' containment reference list.protected Statement
statement
The cached value of the 'Statement
' containment reference.protected EList<TypeParameter>
typeParameters
The cached value of the 'Type Parameters
' containment reference list.protected TypeReference
typeReference
The cached value of the 'Type Reference
' containment reference.-
Fields inherited from class org.emftext.language.java.commons.impl.NamedElementImpl
name, NAME_EDEFAULT
-
Fields inherited from class org.emftext.language.java.commons.impl.CommentableImpl
layoutInformations
-
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
-
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
-
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MethodImpl()
-
Method Summary
-
Methods inherited from class org.emftext.language.java.commons.impl.NamedElementImpl
getName, setName, toString
-
Methods inherited from class org.emftext.language.java.commons.impl.CommentableImpl
addAfterContainingStatement, addBeforeContainingStatement, getAnnotationInterface, getChildrenByEType, getChildrenByType, getClassClass, getConcreteClassifier, getConcreteClassifiers, getContainingAnnotationInstance, getContainingAnonymousClass, getContainingCompilationUnit, getContainingConcreteClassifier, getContainingContainerName, getContainingPackageName, getFirstChildByEType, getFirstChildByType, getLayoutInformations, getLibClass, getLibInterface, getObjectClass, getParentByEType, getParentByType, getParentConcreteClassifier, getStringClass
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eInternalContainer, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.emftext.language.java.commons.Commentable
addAfterContainingStatement, addBeforeContainingStatement, getAnnotationInterface, getChildrenByEType, getChildrenByType, getClassClass, getConcreteClassifier, getConcreteClassifiers, getContainingAnnotationInstance, getContainingAnonymousClass, getContainingCompilationUnit, getContainingConcreteClassifier, getContainingContainerName, getContainingPackageName, getFirstChildByEType, getFirstChildByType, getLayoutInformations, getLibClass, getLibInterface, getObjectClass, getParentByEType, getParentByType, getParentConcreteClassifier, getStringClass
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
-
Methods inherited from interface org.emftext.language.java.commons.NamedElement
getName, setName
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
-
-
-
Field Detail
-
typeReference
protected TypeReference typeReference
The cached value of the 'Type Reference
' containment reference.- See Also:
getTypeReference()
- Generated class or method.
- Ordered collection.
-
arrayDimensionsBefore
protected EList<ArrayDimension> arrayDimensionsBefore
The cached value of the 'Array Dimensions Before
' containment reference list.- See Also:
getArrayDimensionsBefore()
- Generated class or method.
- Ordered collection.
-
arrayDimensionsAfter
protected EList<ArrayDimension> arrayDimensionsAfter
The cached value of the 'Array Dimensions After
' containment reference list.- See Also:
getArrayDimensionsAfter()
- Generated class or method.
- Ordered collection.
-
typeParameters
protected EList<TypeParameter> typeParameters
The cached value of the 'Type Parameters
' containment reference list.- See Also:
getTypeParameters()
- Generated class or method.
- Ordered collection.
-
parameters
protected EList<Parameter> parameters
The cached value of the 'Parameters
' containment reference list.- See Also:
getParameters()
- Generated class or method.
- Ordered collection.
-
exceptions
protected EList<NamespaceClassifierReference> exceptions
The cached value of the 'Exceptions
' containment reference list.- See Also:
getExceptions()
- Generated class or method.
- Ordered collection.
-
annotationsAndModifiers
protected EList<AnnotationInstanceOrModifier> annotationsAndModifiers
The cached value of the 'Annotations And Modifiers
' containment reference list.- See Also:
getAnnotationsAndModifiers()
- Generated class or method.
- Ordered collection.
-
statement
protected Statement statement
The cached value of the 'Statement
' containment reference.- See Also:
getStatement()
- Generated class or method.
- Ordered collection.
-
-
Method Detail
-
eStaticClass
protected EClass eStaticClass()
- Overrides:
eStaticClass
in classMemberImpl
- Generated class or method.
-
getTypeReference
public TypeReference getTypeReference()
- Specified by:
getTypeReference
in interfaceTypedElement
- Returns:
- the value of the 'Type Reference' containment reference.
- See Also:
TypedElement.setTypeReference(TypeReference)
,TypesPackage.getTypedElement_TypeReference()
- Generated class or method.
-
basicGetTypeReference
public TypeReference basicGetTypeReference()
- Generated class or method.
-
basicSetTypeReference
public NotificationChain basicSetTypeReference(TypeReference newTypeReference, NotificationChain msgs)
- Generated class or method.
-
setTypeReference
public void setTypeReference(TypeReference newTypeReference)
- Specified by:
setTypeReference
in interfaceTypedElement
- Parameters:
newTypeReference
- the new value of the 'Type Reference' containment reference.- See Also:
TypedElement.getTypeReference()
- Generated class or method.
-
getArrayDimensionsBefore
public EList<ArrayDimension> getArrayDimensionsBefore()
- Specified by:
getArrayDimensionsBefore
in interfaceArrayTypeable
- Returns:
- the value of the 'Array Dimensions Before' containment reference list.
- See Also:
ArraysPackage.getArrayTypeable_ArrayDimensionsBefore()
- Generated class or method.
-
getArrayDimensionsAfter
public EList<ArrayDimension> getArrayDimensionsAfter()
- Specified by:
getArrayDimensionsAfter
in interfaceArrayTypeable
- Returns:
- the value of the 'Array Dimensions After' containment reference list.
- See Also:
ArraysPackage.getArrayTypeable_ArrayDimensionsAfter()
- Generated class or method.
-
getTypeParameters
public EList<TypeParameter> getTypeParameters()
- Specified by:
getTypeParameters
in interfaceTypeParametrizable
- Returns:
- the value of the 'Type Parameters' containment reference list.
- See Also:
GenericsPackage.getTypeParametrizable_TypeParameters()
- Generated class or method.
-
getParameters
public EList<Parameter> getParameters()
- Specified by:
getParameters
in interfaceParametrizable
- Returns:
- the value of the 'Parameters' containment reference list.
- See Also:
ParametersPackage.getParametrizable_Parameters()
- Generated class or method.
-
getExceptions
public EList<NamespaceClassifierReference> getExceptions()
- Specified by:
getExceptions
in interfaceExceptionThrower
- Returns:
- the value of the 'Exceptions' containment reference list.
- See Also:
MembersPackage.getExceptionThrower_Exceptions()
- Generated class or method.
-
getAnnotationsAndModifiers
public EList<AnnotationInstanceOrModifier> getAnnotationsAndModifiers()
- Specified by:
getAnnotationsAndModifiers
in interfaceAnnotableAndModifiable
- Returns:
- the value of the 'Annotations And Modifiers' containment reference list.
- See Also:
ModifiersPackage.getAnnotableAndModifiable_AnnotationsAndModifiers()
- Generated class or method.
-
getStatement
public Statement getStatement()
- Specified by:
getStatement
in interfaceStatementContainer
- Returns:
- the value of the 'Statement' containment reference.
- See Also:
StatementContainer.setStatement(Statement)
,StatementsPackage.getStatementContainer_Statement()
- Generated class or method.
-
basicGetStatement
public Statement basicGetStatement()
- Generated class or method.
-
basicSetStatement
public NotificationChain basicSetStatement(Statement newStatement, NotificationChain msgs)
- Generated class or method.
-
setStatement
public void setStatement(Statement newStatement)
- Specified by:
setStatement
in interfaceStatementContainer
- Parameters:
newStatement
- the new value of the 'Statement' containment reference.- See Also:
StatementContainer.getStatement()
- Generated class or method.
-
isMethodForCall
public boolean isMethodForCall(MethodCall methodCall, boolean needsPerfectMatch)
- Specified by:
isMethodForCall
in interfaceMethod
- Generated class or method.
-
isSomeMethodForCall
public boolean isSomeMethodForCall(MethodCall methodCall)
- Specified by:
isSomeMethodForCall
in interfaceMethod
- Generated class or method.
-
isBetterMethodForCall
public boolean isBetterMethodForCall(Method otherMethod, MethodCall methodCall)
- Specified by:
isBetterMethodForCall
in interfaceMethod
- Generated class or method.
-
getBlock
public Block getBlock()
-
getStatements
public EList<Statement> getStatements()
- Specified by:
getStatements
in interfaceMethod
- Generated class or method.
-
isHidden
public boolean isHidden(Commentable context)
- Specified by:
isHidden
in interfaceAnnotableAndModifiable
- Generated class or method.
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfaceAnnotableAndModifiable
- Generated class or method.
-
removeModifier
public void removeModifier(Class<?> modifierType)
- Specified by:
removeModifier
in interfaceAnnotableAndModifiable
- Generated class or method.
-
makePublic
public void makePublic()
- Specified by:
makePublic
in interfaceAnnotableAndModifiable
- Generated class or method.
-
makePrivate
public void makePrivate()
- Specified by:
makePrivate
in interfaceAnnotableAndModifiable
- Generated class or method.
-
makeProtected
public void makeProtected()
- Specified by:
makeProtected
in interfaceAnnotableAndModifiable
- Generated class or method.
-
getModifiers
public EList<Modifier> getModifiers()
- Specified by:
getModifiers
in interfaceAnnotableAndModifiable
- Generated class or method.
-
removeAllModifiers
public void removeAllModifiers()
- Specified by:
removeAllModifiers
in interfaceAnnotableAndModifiable
- Generated class or method.
-
hasModifier
public boolean hasModifier(Class<?> type)
- Specified by:
hasModifier
in interfaceAnnotableAndModifiable
- Generated class or method.
-
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interfaceAnnotableAndModifiable
- Generated class or method.
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in interfaceAnnotableAndModifiable
- Generated class or method.
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfaceAnnotableAndModifiable
- Generated class or method.
-
addModifier
public void addModifier(Modifier newModifier)
- Specified by:
addModifier
in interfaceAnnotableAndModifiable
- Generated class or method.
-
getAnnotationInstances
public EList<AnnotationInstance> getAnnotationInstances()
- Specified by:
getAnnotationInstances
in interfaceAnnotableAndModifiable
- Generated class or method.
-
getArrayDimension
public long getArrayDimension()
- Specified by:
getArrayDimension
in interfaceArrayTypeable
- Generated class or method.
-
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- Overrides:
eInverseRemove
in classCommentableImpl
- Generated class or method.
-
eGet
public Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceInternalEObject
- Overrides:
eGet
in classNamedElementImpl
- Generated class or method.
-
eSet
public void eSet(int featureID, Object newValue)
- Specified by:
eSet
in interfaceInternalEObject
- Overrides:
eSet
in classNamedElementImpl
- Generated class or method.
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnset
in interfaceInternalEObject
- Overrides:
eUnset
in classNamedElementImpl
- Generated class or method.
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSet
in interfaceInternalEObject
- Overrides:
eIsSet
in classNamedElementImpl
- Generated class or method.
-
eBaseStructuralFeatureID
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
- Specified by:
eBaseStructuralFeatureID
in interfaceInternalEObject
- Overrides:
eBaseStructuralFeatureID
in classBasicEObjectImpl
- Generated class or method.
-
eDerivedStructuralFeatureID
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
- Specified by:
eDerivedStructuralFeatureID
in interfaceInternalEObject
- Overrides:
eDerivedStructuralFeatureID
in classBasicEObjectImpl
- Generated class or method.
-
-