|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.bom.dynamic.IlrDynamicModelElement ilog.rules.bom.dynamic.IlrDynamicMember ilog.rules.bom.dynamic.IlrDynamicMethod
public class IlrDynamicMethod
An implementation of the 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface ilog.rules.bom.IlrMethod |
---|
IlrMethod.IlrGenericMethodInfo |
Field Summary |
---|
Fields inherited from interface ilog.rules.bom.IlrMethod |
---|
METHOD_KIND_PROPERTY, RAW_METHOD_KIND |
Method Summary | |
---|---|
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(String name,
IlrType type)
Deprecated. As of JRules 6.0, use IlrModelFactory.createParameter(ilog.rules.bom.mutable.IlrMutableMemberWithParameter, String, ilog.rules.bom.IlrType) |
protected 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. |
List |
getMethodExceptions()
Returns a list of classes which are exceptions that may be thrown by this method. |
Method |
getNativeMethod()
Returns the native method represented by this IlrMethod , or null . |
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(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. |
Methods inherited from class ilog.rules.bom.dynamic.IlrDynamicMember |
---|
getDeclaringClass, getDomain, getEnclosingNamespace, isFinal, isPrivate, isProtected, isPublic, isStatic, setDomain, setFinal, setMemberType, setPackageVisibility, setPrivate, setProtected, setPublic, setStatic |
Methods inherited from class ilog.rules.bom.dynamic.IlrDynamicModelElement |
---|
fireUpdate, fireUpdate, fixType, getFullyQualifiedName, getMutableObjectModel, getName, getObjectModel, getPropertyValue, getPropertyValue, hasListeners, isPropertyPersistent, propertyNames, removeProperty, setPersistentProperty, setPersistentProperty, setPropertyValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ilog.rules.bom.mutable.IlrMutableMember |
---|
setDomain, setFinal, setMemberType, setPackageVisibility, setPrivate, setProtected, setPublic, setStatic |
Methods inherited from interface ilog.rules.bom.mutable.IlrMutableModelElement |
---|
getMutableObjectModel |
Methods inherited from interface ilog.rules.bom.IlrMethod |
---|
getJavaMethod, isConstructor, isMethod, isSynchronized, visit |
Methods inherited from interface ilog.rules.bom.IlrMember |
---|
getDeclaringClass, getDomain, isFinal, isPrivate, isProtected, isPublic, isStatic |
Methods inherited from interface ilog.rules.bom.IlrModelElement |
---|
getEnclosingNamespace, getFullyQualifiedName, getName, getObjectModel |
Methods inherited from interface ilog.rules.bom.IlrProperties |
---|
isPropertyPersistent, setPersistentProperty, setPersistentProperty |
Methods inherited from interface ilog.rules.bom.IlrTransientProperties |
---|
getPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValue |
Method Detail |
---|
public Method getNativeMethod()
IlrMethod
, or null
.
getNativeMethod
in interface IlrMethod
IlrMethod
, or null
.public boolean isAbstract()
true
if the method is abstract.
isAbstract
in interface IlrMethod
public void setAbstract(boolean flag)
false
.
setAbstract
in interface IlrMutableMethod
flag
- the new value of the 'static' property.public void setSynchronized(boolean flag)
false
.
setSynchronized
in interface IlrMutableMethod
flag
- the new value of the 'synchronized' property.public void setOperator(boolean flag)
false
.
setOperator
in interface IlrMutableMethod
flag
- the new value of the 'operator' property.public void setVarArgs(boolean flag)
false
.
setVarArgs
in interface IlrMutableMethod
flag
- the new value of the 'varArgs' property.public IlrType getReturnType()
getReturnType
in interface IlrMethod
public IlrType getMemberType()
getMemberType
in interface IlrMember
getMemberType
in class IlrDynamicMember
public void setReturnType(IlrType returnType)
setReturnType
in interface IlrMutableMethod
public List getMethodExceptions()
getMethodExceptions
in interface IlrMethod
protected List fixExceptionTypes()
public void addException(IlrClass aClass)
addException
in interface IlrMutableMethod
aClass
- the class that is added to the exceptions list.public List getParameters()
getParameters
in interface IlrMemberWithParameter
public void setParameters(List parameters)
setParameters
in interface IlrMutableMemberWithParameter
parameters
- The parameters.public void addParameter(IlrParameter parameter)
addParameter
in interface IlrMutableMemberWithParameter
parameter
- The parameter to add.public IlrDynamicParameter addParameter(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 IlrMutableMemberWithParameter
parameter
- The parameter to remove.
true
If the parameter was removedpublic IlrMethod.IlrGenericMethodInfo getGenericInfo()
IlrMethod
null
if the method is neither a generic
nor an instantiation of a generic method.
getGenericInfo
in interface IlrMethod
null
.public void setTypeParameters(IlrMutableTypeVariable[] typeParameters)
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |