|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectResourceImpl
org.mindswap.ocl.impl.OCLResourceImpl
org.mindswap.ocl.impl.OCLMethodImpl
Title: OCLMethodImpl
Description: Implementation of the OCLMethod interface
Copyright: Copyright (c) 2005
Company: Mindswap (http://www.mindswap.org)
| Field Summary | |
static Implementation |
factory
|
| Constructor Summary | |
protected |
OCLMethodImpl(Node n,
EnhGraph eg)
|
| Method Summary | |
void |
addParameter(OCLParameter theParam)
Adds the specified parameter to the list of parameters for this method |
Literal |
getMethodName()
Returns the name of the method |
OCLObject |
getOnObject()
The object on which this method is to be invoked |
OCLParameterIterator |
getParameters()
Returns the list of parameters for this method |
java.lang.Object |
invoke()
Invokes this method and returns its result |
java.lang.Object |
invoke(java.lang.Object theObject)
Invokes this method on the specifed object and returns the result |
void |
removeParameter(OCLParameter theParam)
Removes the specified parameter from the list of parameters for this method |
void |
setMethodName(Literal theLiteral)
Sets the method name |
| Methods inherited from class org.mindswap.ocl.impl.OCLResourceImpl |
mustBeValidModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static Implementation factory
| Constructor Detail |
protected OCLMethodImpl(Node n,
EnhGraph eg)
| Method Detail |
public void addParameter(OCLParameter theParam)
OCLMethod
addParameter in interface OCLMethodtheParam - OCLParameterpublic void removeParameter(OCLParameter theParam)
OCLMethod
removeParameter in interface OCLMethodtheParam - OCLParameterpublic OCLParameterIterator getParameters()
OCLMethod
getParameters in interface OCLMethodpublic Literal getMethodName()
OCLMethod
getMethodName in interface OCLMethodpublic OCLObject getOnObject()
OCLMethod
getOnObject in interface OCLMethodpublic void setMethodName(Literal theLiteral)
OCLMethod
setMethodName in interface OCLMethodtheLiteral - Literal the new method name
public java.lang.Object invoke()
throws java.lang.IllegalArgumentException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
OCLMethod
invoke in interface OCLMethodjava.lang.IllegalArgumentException - if there is no object to invoke this method on
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.Object invoke(java.lang.Object theObject)
throws java.lang.IllegalArgumentException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
OCLMethod
invoke in interface OCLMethodtheObject - Object the object to invoke this method on
java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||