|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Title: OCLMethod
Description: A abstract representation of a java method
Copyright: Copyright (c) 2005
Company: Mindswap (http://www.mindswap.org)
| 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 |
| Method Detail |
public void addParameter(OCLParameter theParam)
theParam - OCLParameterpublic void removeParameter(OCLParameter theParam)
theParam - OCLParameterpublic OCLParameterIterator getParameters()
public Literal getMethodName()
public void setMethodName(Literal theLiteral)
theLiteral - Literal the new method namepublic OCLObject getOnObject()
public java.lang.Object invoke()
throws java.lang.IllegalArgumentException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.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
theObject - Object the object to invoke this method on
java.lang.IllegalArgumentException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||