org.eclipse.emf.java.impl
Class JMethodImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.java.impl.JModelElementImpl
                  extended by org.eclipse.emf.java.impl.JMemberImpl
                      extended by org.eclipse.emf.java.impl.JMethodImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, JMember, JMethod, JModelElement

public class JMethodImpl
extends JMemberImpl
implements JMethod

An implementation of the model object 'JMethod'.

The following features are implemented:


Nested Class Summary
protected static class JMethodImpl.JHelper
           
 
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 java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  boolean abstract_
          The cached value of the 'Abstract' attribute
protected static boolean ABSTRACT_EDEFAULT
          The default value of the 'Abstract' attribute
protected  java.lang.String body
          The cached value of the 'Body' attribute
protected static java.lang.String BODY_EDEFAULT
          The default value of the 'Body' attribute
protected  boolean constructor
          The cached value of the 'Constructor' attribute
protected static boolean CONSTRUCTOR_EDEFAULT
          The default value of the 'Constructor' attribute
protected  EList<JClass> exceptions
          The cached value of the 'Exceptions' reference list
protected  boolean final_
          The cached value of the 'Final' attribute
protected static boolean FINAL_EDEFAULT
          The default value of the 'Final' attribute
protected static java.lang.reflect.Method JAVA_METHOD_EDEFAULT
          The default value of the 'Java Method' attribute
protected  java.lang.reflect.Constructor<?> javaConstructor
          The cached value of the 'Java Constructor' attribute
protected  java.lang.reflect.Method javaMethod
          The cached value of the 'Java Method' attribute
protected  boolean native_
          The cached value of the 'Native' attribute
protected static boolean NATIVE_EDEFAULT
          The default value of the 'Native' attribute
protected  EList<JParameter> parameters
          The cached value of the 'Parameters' containment reference list
protected  JClass returnType
          The cached value of the 'Return Type' reference
protected  boolean synchronized_
          The cached value of the 'Synchronized' attribute
protected static boolean SYNCHRONIZED_EDEFAULT
          The default value of the 'Synchronized' attribute
 
Fields inherited from class org.eclipse.emf.java.impl.JMemberImpl
comment, COMMENT_EDEFAULT, static_, STATIC_EDEFAULT, visibility, VISIBILITY_EDEFAULT
 
Fields inherited from class org.eclipse.emf.java.impl.JModelElementImpl
isReconciling, jNode, JNODE_EDEFAULT, name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
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.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected JMethodImpl()
           
 
Method Summary
 JClass basicGetReturnType()
           
protected  void changeAttribute(Notification notification)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 java.lang.String getBody()
           
 EList<JClass> getExceptions()
           
 java.lang.reflect.Constructor<?> getJavaConstructor()
           
 java.lang.reflect.Method getJavaMethod()
           
 EList<JParameter> getParameters()
           
 JClass getReturnType()
           
 boolean isAbstract()
           
 boolean isConstructor()
           
 boolean isFinal()
           
 boolean isNative()
           
 boolean isSynchronized()
           
protected  void resolveIdentifiers()
           
 void setAbstract(boolean newAbstract)
           
 void setBody(java.lang.String newBody)
           
 void setConstructor(boolean newConstructor)
           
 void setFinal(boolean newFinal)
           
 void setJavaConstructor(java.lang.reflect.Constructor<?> newJavaConstructor)
           
 void setJavaMethod(java.lang.reflect.Method newJavaMethod)
           
 void setNative(boolean newNative)
           
 void setReturnType(JClass newReturnType)
           
 void setSynchronized(boolean newSynchronized)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.emf.java.impl.JMemberImpl
basicSetContainingType, eBasicRemoveFromContainerFeature, getComment, getContainingType, getVisibility, isStatic, setComment, setContainingType, setStatic, setVisibility
 
Methods inherited from class org.eclipse.emf.java.impl.JModelElementImpl
adoptContent, changeReference, eNotificationRequired, eNotify, getJNode, getName, getQualifiedName, moveContent, orphanContent, setJNode, setJNodeGen, setName
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, 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
eBasicAdapterArray, eBasicHasAdapters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.java.JMember
getComment, getContainingType, getVisibility, isStatic, setComment, setContainingType, setStatic, setVisibility
 
Methods inherited from interface org.eclipse.emf.java.JModelElement
getJNode, getName, getQualifiedName, setJNode, setName
 
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.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

ABSTRACT_EDEFAULT

protected static final boolean ABSTRACT_EDEFAULT
The default value of the 'Abstract' attribute.

See Also:
isAbstract(), Constant Field Values

abstract_

protected boolean abstract_
The cached value of the 'Abstract' attribute.

See Also:
isAbstract()

FINAL_EDEFAULT

protected static final boolean FINAL_EDEFAULT
The default value of the 'Final' attribute.

See Also:
isFinal(), Constant Field Values

final_

protected boolean final_
The cached value of the 'Final' attribute.

See Also:
isFinal()

NATIVE_EDEFAULT

protected static final boolean NATIVE_EDEFAULT
The default value of the 'Native' attribute.

See Also:
isNative(), Constant Field Values

native_

protected boolean native_
The cached value of the 'Native' attribute.

See Also:
isNative()

SYNCHRONIZED_EDEFAULT

protected static final boolean SYNCHRONIZED_EDEFAULT
The default value of the 'Synchronized' attribute.

See Also:
isSynchronized(), Constant Field Values

synchronized_

protected boolean synchronized_
The cached value of the 'Synchronized' attribute.

See Also:
isSynchronized()

JAVA_METHOD_EDEFAULT

protected static final java.lang.reflect.Method JAVA_METHOD_EDEFAULT
The default value of the 'Java Method' attribute.

See Also:
getJavaMethod()

javaMethod

protected java.lang.reflect.Method javaMethod
The cached value of the 'Java Method' attribute.

See Also:
getJavaMethod()

CONSTRUCTOR_EDEFAULT

protected static final boolean CONSTRUCTOR_EDEFAULT
The default value of the 'Constructor' attribute.

See Also:
isConstructor(), Constant Field Values

constructor

protected boolean constructor
The cached value of the 'Constructor' attribute.

See Also:
isConstructor()

javaConstructor

protected java.lang.reflect.Constructor<?> javaConstructor
The cached value of the 'Java Constructor' attribute.

See Also:
getJavaConstructor()

BODY_EDEFAULT

protected static final java.lang.String BODY_EDEFAULT
The default value of the 'Body' attribute.

See Also:
getBody()

body

protected java.lang.String body
The cached value of the 'Body' attribute.

See Also:
getBody()

parameters

protected EList<JParameter> parameters
The cached value of the 'Parameters' containment reference list.

See Also:
getParameters()

exceptions

protected EList<JClass> exceptions
The cached value of the 'Exceptions' reference list.

See Also:
getExceptions()

returnType

protected JClass returnType
The cached value of the 'Return Type' reference.

See Also:
getReturnType()
Constructor Detail

JMethodImpl

protected JMethodImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class JMemberImpl

isAbstract

public boolean isAbstract()

Specified by:
isAbstract in interface JMethod
Returns:
the value of the 'Abstract' attribute.
See Also:
JMethod.setAbstract(boolean), JavaPackage.getJMethod_Abstract()

setAbstract

public void setAbstract(boolean newAbstract)

Specified by:
setAbstract in interface JMethod
Parameters:
newAbstract - the new value of the 'Abstract' attribute.
See Also:
JMethod.isAbstract()

isFinal

public boolean isFinal()

Specified by:
isFinal in interface JMethod
Returns:
the value of the 'Final' attribute.
See Also:
JMethod.setFinal(boolean), JavaPackage.getJMethod_Final()

setFinal

public void setFinal(boolean newFinal)

Specified by:
setFinal in interface JMethod
Parameters:
newFinal - the new value of the 'Final' attribute.
See Also:
JMethod.isFinal()

isNative

public boolean isNative()

Specified by:
isNative in interface JMethod
Returns:
the value of the 'Native' attribute.
See Also:
JMethod.setNative(boolean), JavaPackage.getJMethod_Native()

setNative

public void setNative(boolean newNative)

Specified by:
setNative in interface JMethod
Parameters:
newNative - the new value of the 'Native' attribute.
See Also:
JMethod.isNative()

isSynchronized

public boolean isSynchronized()

Specified by:
isSynchronized in interface JMethod
Returns:
the value of the 'Synchronized' attribute.
See Also:
JMethod.setSynchronized(boolean), JavaPackage.getJMethod_Synchronized()

setSynchronized

public void setSynchronized(boolean newSynchronized)

Specified by:
setSynchronized in interface JMethod
Parameters:
newSynchronized - the new value of the 'Synchronized' attribute.
See Also:
JMethod.isSynchronized()

getJavaMethod

public java.lang.reflect.Method getJavaMethod()

Specified by:
getJavaMethod in interface JMethod
Returns:
the value of the 'Java Method' attribute.
See Also:
JMethod.setJavaMethod(Method), JavaPackage.getJMethod_JavaMethod()

setJavaMethod

public void setJavaMethod(java.lang.reflect.Method newJavaMethod)

Specified by:
setJavaMethod in interface JMethod
Parameters:
newJavaMethod - the new value of the 'Java Method' attribute.
See Also:
JMethod.getJavaMethod()

isConstructor

public boolean isConstructor()

Specified by:
isConstructor in interface JMethod
Returns:
the value of the 'Constructor' attribute.
See Also:
JMethod.setConstructor(boolean), JavaPackage.getJMethod_Constructor()

setConstructor

public void setConstructor(boolean newConstructor)

Specified by:
setConstructor in interface JMethod
Parameters:
newConstructor - the new value of the 'Constructor' attribute.
See Also:
JMethod.isConstructor()

getJavaConstructor

public java.lang.reflect.Constructor<?> getJavaConstructor()

Specified by:
getJavaConstructor in interface JMethod
Returns:
the value of the 'Java Constructor' attribute.
See Also:
JMethod.setJavaConstructor(Constructor), JavaPackage.getJMethod_JavaConstructor()

setJavaConstructor

public void setJavaConstructor(java.lang.reflect.Constructor<?> newJavaConstructor)

Specified by:
setJavaConstructor in interface JMethod
Parameters:
newJavaConstructor - the new value of the 'Java Constructor' attribute.
See Also:
JMethod.getJavaConstructor()

getBody

public java.lang.String getBody()

Specified by:
getBody in interface JMethod
Returns:
the value of the 'Body' attribute.
See Also:
JMethod.setBody(String), JavaPackage.getJMethod_Body()

setBody

public void setBody(java.lang.String newBody)

Specified by:
setBody in interface JMethod
Parameters:
newBody - the new value of the 'Body' attribute.
See Also:
JMethod.getBody()

getParameters

public EList<JParameter> getParameters()

Specified by:
getParameters in interface JMethod
Returns:
the value of the 'Parameters' containment reference list.
See Also:
JavaPackage.getJMethod_Parameters(), JParameter.getMethod()

getExceptions

public EList<JClass> getExceptions()

Specified by:
getExceptions in interface JMethod
Returns:
the value of the 'Exceptions' reference list.
See Also:
JavaPackage.getJMethod_Exceptions()

getReturnType

public JClass getReturnType()

Specified by:
getReturnType in interface JMethod
Returns:
the value of the 'Return Type' reference.
See Also:
JMethod.setReturnType(JClass), JavaPackage.getJMethod_ReturnType()

basicGetReturnType

public JClass basicGetReturnType()


setReturnType

public void setReturnType(JClass newReturnType)

Specified by:
setReturnType in interface JMethod
Parameters:
newReturnType - the new value of the 'Return Type' reference.
See Also:
JMethod.getReturnType()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class JMemberImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class JMemberImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class JMemberImpl
See Also:
InternalEObject.eGet(EStructuralFeature, boolean, boolean)

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class JMemberImpl
See Also:
EObject.eSet(EStructuralFeature, Object)

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class JMemberImpl
See Also:
EObject.eUnset(EStructuralFeature)

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class JMemberImpl
See Also:
EObject.eIsSet(EStructuralFeature)

toString

public java.lang.String toString()

Overrides:
toString in class JMemberImpl

changeAttribute

protected void changeAttribute(Notification notification)
Overrides:
changeAttribute in class JModelElementImpl

resolveIdentifiers

protected void resolveIdentifiers()
Overrides:
resolveIdentifiers in class JModelElementImpl

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.