Rule Execution Server API

ilog.rules.factory.translation
Class IlrMemberWithParametersTranslation

java.lang.Object
  extended by ilog.rules.factory.translation.IlrMemberWithParametersTranslation
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IlrConstructorTranslation, IlrMethodTranslation

public abstract class IlrMemberWithParametersTranslation
extends Object
implements Serializable

IlrMemberWithParametersTranslation is an abstract class used for the translation of a member with parameters.

Since:
JRules 6.0
See Also:
Serialized Form

Constructor Summary
IlrMemberWithParametersTranslation()
           
 
Method Summary
 void addParameter(String parameterType)
          Adds a parameter type.
 void clearParameters()
          Removes all parameters.
 List getParameterTypes()
          Returns the list of parameter types.
 String getSignature()
          Returns the signature of this member.
 boolean isTranslated()
          Tests if this member is to be translated.
 void removeParameter(int index)
          Removes a parameter.
 void setTranslated(boolean translated)
          Sets if this member should be translated or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrMemberWithParametersTranslation

public IlrMemberWithParametersTranslation()
Method Detail

addParameter

public void addParameter(String parameterType)
Adds a parameter type.

Parameters:
parameterType - The new parameter type.

removeParameter

public void removeParameter(int index)
Removes a parameter.

Parameters:
index - The index of the parameter to be removed.

clearParameters

public void clearParameters()
Removes all parameters.


getParameterTypes

public List getParameterTypes()
Returns the list of parameter types.

Returns:
The list of parameter types. This may be an empty list.

getSignature

public String getSignature()
Returns the signature of this member. The signature of the member is of the form
(<type name>[,<other type name]*). For example:
  • ()
  • (int)
  • (int,java.lang.String)

Returns:
The signature of the member.

isTranslated

public boolean isTranslated()
Tests if this member is to be translated. A member that is not translated will not produce errors when translations are checked. However, it will produce an error if it is used in a ruleset that is being translated.

Since:
JRules 6.1
Returns:
If this member is to be translated, true is returned.

setTranslated

public void setTranslated(boolean translated)
Sets if this member should be translated or not.

Since:
JRules 6.1
Parameters:
translated - Set to true so this member is translated.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013