public class IlrDynamicMethod extends IlrDynamicMember implements IlrMutableMethod
IlrMethod
interface.
Warning:
Serialized objects of this class will not be compatible with
future releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of IBM Decision Server.IlrMethod.IlrGenericMethodInfoMETHOD_KIND_PROPERTY, RAW_METHOD_KIND| Modifier and Type | Method and Description |
|---|---|
void |
addException(IlrClass aClass)
Adds a class to the 'throws' clause of this method.
|
void |
addParameter(IlrParameter parameter)
Adds a parameter to this member's parameters.
|
IlrDynamicParameter |
addParameter(java.lang.String name,
IlrType type)
Deprecated.
|
protected java.util.List |
fixExceptionTypes() |
IlrMethod.IlrGenericMethodInfo |
getGenericInfo()
Returns the generic information about this method,
or
null if the method is neither a generic
nor an instantiation of a generic method. |
IlrType |
getMemberType()
Returns the type of the member.
|
java.util.List |
getMethodExceptions()
Returns a list of classes which are exceptions that may be thrown
by this method.
|
java.lang.reflect.Method |
getNativeMethod()
Returns the native method represented by this
IlrMethod, or null. |
java.util.List |
getParameters()
Returns the list of parameters for this member.
|
IlrType |
getReturnType()
Returns the return type of the method.
|
boolean |
isAbstract()
Returns
true if the method is abstract. |
boolean |
removeParameter(IlrParameter parameter)
Removes a parameter from this member's parameters
|
void |
setAbstract(boolean flag)
Sets the 'abstract' property of this method.
|
void |
setOperator(boolean flag)
Sets the 'operator' property of this method.
|
void |
setParameters(java.util.List parameters)
Sets the parameter of this member.
|
void |
setReturnType(IlrType returnType)
Sets the return type of this method.
|
void |
setSynchronized(boolean flag)
Sets the 'synchronized' property of this method.
|
void |
setTypeParameters(IlrMutableTypeVariable[] typeParameters) |
void |
setVarArgs(boolean flag)
Sets the 'varArgs' property of this method.
|
getDeclaringClass, getDomain, getEnclosingNamespace, isFinal, isPrivate, isProtected, isPublic, isStatic, setDomain, setFinal, setMemberType, setPackageVisibility, setPrivate, setProtected, setPublic, setStaticfireUpdate, fireUpdate, fixType, getFullyQualifiedName, getMutableObjectModel, getName, getObjectModel, getPropertyValue, getPropertyValue, hasListeners, isPropertyPersistent, propertyNames, removeProperty, setPersistentProperty, setPersistentProperty, setPropertyValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDomain, setFinal, setMemberType, setPackageVisibility, setPrivate, setProtected, setPublic, setStaticgetMutableObjectModelgetJavaMethod, isConstructor, isMethod, isSynchronized, visitgetDeclaringClass, getDomain, isFinal, isPrivate, isProtected, isPublic, isStaticgetEnclosingNamespace, getFullyQualifiedName, getName, getObjectModelisPropertyPersistent, setPersistentProperty, setPersistentPropertygetPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValuepublic java.lang.reflect.Method getNativeMethod()
IlrMethod, or null.getNativeMethod in interface IlrMethodIlrMethod, or null.public boolean isAbstract()
true if the method is abstract.isAbstract in interface IlrMethodpublic void setAbstract(boolean flag)
false.setAbstract in interface IlrMutableMethodflag - the new value of the 'static' property.public void setSynchronized(boolean flag)
false.setSynchronized in interface IlrMutableMethodflag - the new value of the 'synchronized' property.public void setOperator(boolean flag)
false.setOperator in interface IlrMutableMethodflag - the new value of the 'operator' property.public void setVarArgs(boolean flag)
false.setVarArgs in interface IlrMutableMethodflag - the new value of the 'varArgs' property.public IlrType getReturnType()
getReturnType in interface IlrMethodpublic IlrType getMemberType()
getMemberType in interface IlrMembergetMemberType in class IlrDynamicMemberpublic void setReturnType(IlrType returnType)
setReturnType in interface IlrMutableMethodpublic java.util.List getMethodExceptions()
getMethodExceptions in interface IlrMethodprotected java.util.List fixExceptionTypes()
public void addException(IlrClass aClass)
addException in interface IlrMutableMethodaClass - the class that is added to the exceptions list.public java.util.List getParameters()
getParameters in interface IlrMemberWithParameterpublic void setParameters(java.util.List parameters)
setParameters in interface IlrMutableMemberWithParameterparameters - The parameters.public void addParameter(IlrParameter parameter)
addParameter in interface IlrMutableMemberWithParameterparameter - The parameter to add.public IlrDynamicParameter addParameter(java.lang.String name, IlrType type)
IlrModelFactory.createParameter(ilog.rules.bom.mutable.IlrMutableMemberWithParameter, String, ilog.rules.bom.IlrType)IlrDynamicParameter to this method. Note that
no check is made that the given name is not already used
by another parameter of the method.name - the parameter name.type - the parameter type.public boolean removeParameter(IlrParameter parameter)
removeParameter in interface IlrMutableMemberWithParameterparameter - The parameter to remove.true If the parameter was removedpublic IlrMethod.IlrGenericMethodInfo getGenericInfo()
IlrMethodnull if the method is neither a generic
nor an instantiation of a generic method.getGenericInfo in interface IlrMethodnull.public void setTypeParameters(IlrMutableTypeVariable[] typeParameters)
© Copyright IBM Corp. 1987, 2017