org.eclipse.emf.java
Interface JMethod

All Superinterfaces:
EObject, JMember, JModelElement, Notifier
All Known Implementing Classes:
JMethodImpl

public interface JMethod
extends JMember

A representation of the model object 'JMethod'.

The following features are supported:

See Also:
JavaPackage.getJMethod()

Method Summary
 java.lang.String getBody()
          Returns the value of the 'Body' attribute
 EList<JClass> getExceptions()
          Returns the value of the 'Exceptions' reference list.
 java.lang.reflect.Constructor<?> getJavaConstructor()
          Returns the value of the 'Java Constructor' attribute
 java.lang.reflect.Method getJavaMethod()
          Returns the value of the 'Java Method' attribute
 EList<JParameter> getParameters()
          Returns the value of the 'Parameters' containment reference list.
 JClass getReturnType()
          Returns the value of the 'Return Type' reference
 boolean isAbstract()
          Returns the value of the 'Abstract' attribute
 boolean isConstructor()
          Returns the value of the 'Constructor' attribute
 boolean isFinal()
          Returns the value of the 'Final' attribute
 boolean isNative()
          Returns the value of the 'Native' attribute
 boolean isSynchronized()
          Returns the value of the 'Synchronized' attribute
 void setAbstract(boolean value)
          Sets the value of the 'Abstract' attribute
 void setBody(java.lang.String value)
          Sets the value of the 'Body' attribute
 void setConstructor(boolean value)
          Sets the value of the 'Constructor' attribute
 void setFinal(boolean value)
          Sets the value of the 'Final' attribute
 void setJavaConstructor(java.lang.reflect.Constructor<?> value)
          Sets the value of the 'Java Constructor' attribute
 void setJavaMethod(java.lang.reflect.Method value)
          Sets the value of the 'Java Method' attribute
 void setNative(boolean value)
          Sets the value of the 'Native' attribute
 void setReturnType(JClass value)
          Sets the value of the 'Return Type' reference
 void setSynchronized(boolean value)
          Sets the value of the 'Synchronized' attribute
 
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
 

Method Detail

isAbstract

boolean isAbstract()
Returns the value of the 'Abstract' attribute.

Returns:
the value of the 'Abstract' attribute.
See Also:
setAbstract(boolean), JavaPackage.getJMethod_Abstract()

setAbstract

void setAbstract(boolean value)
Sets the value of the 'Abstract' attribute.

Parameters:
value - the new value of the 'Abstract' attribute.
See Also:
isAbstract()

isFinal

boolean isFinal()
Returns the value of the 'Final' attribute.

Returns:
the value of the 'Final' attribute.
See Also:
setFinal(boolean), JavaPackage.getJMethod_Final()

setFinal

void setFinal(boolean value)
Sets the value of the 'Final' attribute.

Parameters:
value - the new value of the 'Final' attribute.
See Also:
isFinal()

isNative

boolean isNative()
Returns the value of the 'Native' attribute.

Returns:
the value of the 'Native' attribute.
See Also:
setNative(boolean), JavaPackage.getJMethod_Native()

setNative

void setNative(boolean value)
Sets the value of the 'Native' attribute.

Parameters:
value - the new value of the 'Native' attribute.
See Also:
isNative()

isSynchronized

boolean isSynchronized()
Returns the value of the 'Synchronized' attribute.

Returns:
the value of the 'Synchronized' attribute.
See Also:
setSynchronized(boolean), JavaPackage.getJMethod_Synchronized()

setSynchronized

void setSynchronized(boolean value)
Sets the value of the 'Synchronized' attribute.

Parameters:
value - the new value of the 'Synchronized' attribute.
See Also:
isSynchronized()

getJavaMethod

java.lang.reflect.Method getJavaMethod()
Returns the value of the 'Java Method' attribute.

Returns:
the value of the 'Java Method' attribute.
See Also:
setJavaMethod(Method), JavaPackage.getJMethod_JavaMethod()

setJavaMethod

void setJavaMethod(java.lang.reflect.Method value)
Sets the value of the 'Java Method' attribute.

Parameters:
value - the new value of the 'Java Method' attribute.
See Also:
getJavaMethod()

isConstructor

boolean isConstructor()
Returns the value of the 'Constructor' attribute.

Returns:
the value of the 'Constructor' attribute.
See Also:
setConstructor(boolean), JavaPackage.getJMethod_Constructor()

setConstructor

void setConstructor(boolean value)
Sets the value of the 'Constructor' attribute.

Parameters:
value - the new value of the 'Constructor' attribute.
See Also:
isConstructor()

getJavaConstructor

java.lang.reflect.Constructor<?> getJavaConstructor()
Returns the value of the 'Java Constructor' attribute.

Returns:
the value of the 'Java Constructor' attribute.
See Also:
setJavaConstructor(Constructor), JavaPackage.getJMethod_JavaConstructor()

setJavaConstructor

void setJavaConstructor(java.lang.reflect.Constructor<?> value)
Sets the value of the 'Java Constructor' attribute.

Parameters:
value - the new value of the 'Java Constructor' attribute.
See Also:
getJavaConstructor()

getBody

java.lang.String getBody()
Returns the value of the 'Body' attribute.

Returns:
the value of the 'Body' attribute.
See Also:
setBody(String), JavaPackage.getJMethod_Body()

setBody

void setBody(java.lang.String value)
Sets the value of the 'Body' attribute.

Parameters:
value - the new value of the 'Body' attribute.
See Also:
getBody()

getParameters

EList<JParameter> getParameters()
Returns the value of the 'Parameters' containment reference list. The list contents are of type JParameter. It is bidirectional and its opposite is 'Method'.

Returns:
the value of the 'Parameters' containment reference list.
See Also:
JavaPackage.getJMethod_Parameters(), JParameter.getMethod()

getExceptions

EList<JClass> getExceptions()
Returns the value of the 'Exceptions' reference list. The list contents are of type JClass.

Returns:
the value of the 'Exceptions' reference list.
See Also:
JavaPackage.getJMethod_Exceptions()

getReturnType

JClass getReturnType()
Returns the value of the 'Return Type' reference.

Returns:
the value of the 'Return Type' reference.
See Also:
setReturnType(JClass), JavaPackage.getJMethod_ReturnType()

setReturnType

void setReturnType(JClass value)
Sets the value of the 'Return Type' reference.

Parameters:
value - the new value of the 'Return Type' reference.
See Also:
getReturnType()

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