public interface JMethod extends JMember
The following features are supported:
JavaPackage.getJMethod()| Modifier and Type | Method and Description |
|---|---|
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 |
getComment, getContainingType, getVisibility, isStatic, setComment, setContainingType, setStatic, setVisibilitygetJNode, getName, getQualifiedName, setJNode, setNameeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliverboolean isAbstract()
setAbstract(boolean),
JavaPackage.getJMethod_Abstract()void setAbstract(boolean value)
Abstract' attribute.
value - the new value of the 'Abstract' attribute.isAbstract()boolean isFinal()
setFinal(boolean),
JavaPackage.getJMethod_Final()void setFinal(boolean value)
Final' attribute.
value - the new value of the 'Final' attribute.isFinal()boolean isNative()
setNative(boolean),
JavaPackage.getJMethod_Native()void setNative(boolean value)
Native' attribute.
value - the new value of the 'Native' attribute.isNative()boolean isSynchronized()
setSynchronized(boolean),
JavaPackage.getJMethod_Synchronized()void setSynchronized(boolean value)
Synchronized' attribute.
value - the new value of the 'Synchronized' attribute.isSynchronized()java.lang.reflect.Method getJavaMethod()
setJavaMethod(Method),
JavaPackage.getJMethod_JavaMethod()void setJavaMethod(java.lang.reflect.Method value)
Java Method' attribute.
value - the new value of the 'Java Method' attribute.getJavaMethod()boolean isConstructor()
setConstructor(boolean),
JavaPackage.getJMethod_Constructor()void setConstructor(boolean value)
Constructor' attribute.
value - the new value of the 'Constructor' attribute.isConstructor()java.lang.reflect.Constructor<?> getJavaConstructor()
setJavaConstructor(Constructor),
JavaPackage.getJMethod_JavaConstructor()void setJavaConstructor(java.lang.reflect.Constructor<?> value)
Java Constructor' attribute.
value - the new value of the 'Java Constructor' attribute.getJavaConstructor()java.lang.String getBody()
setBody(String),
JavaPackage.getJMethod_Body()void setBody(java.lang.String value)
Body' attribute.
value - the new value of the 'Body' attribute.getBody()EList<JParameter> getParameters()
JParameter.
It is bidirectional and its opposite is 'Method'.
JavaPackage.getJMethod_Parameters(),
JParameter.getMethod()EList<JClass> getExceptions()
JClass.
JavaPackage.getJMethod_Exceptions()JClass getReturnType()
setReturnType(JClass),
JavaPackage.getJMethod_ReturnType()void setReturnType(JClass value)
Return Type' reference.
value - the new value of the 'Return Type' reference.getReturnType()