Rule Execution Server API

ilog.rules.factory.translation
Class IlrMethodTranslation

java.lang.Object
  extended by ilog.rules.factory.translation.IlrMemberWithParametersTranslation
      extended by ilog.rules.factory.translation.IlrMethodTranslation
All Implemented Interfaces:
Serializable

public class IlrMethodTranslation
extends IlrMemberWithParametersTranslation

Method translation.

Since:
JRules 6.0
See Also:
Serialized Form

Constructor Summary
IlrMethodTranslation()
           
 
Method Summary
 IlrBody getBody()
          Returns the body.
 String getDisplayName()
          Returns the display name, that is, the name and signature.
 String getName()
          Returns the name of the method.
 void setBody(IlrBody body)
          Sets the body.
 void setName(String name)
          Sets the name of the method.
 
Methods inherited from class ilog.rules.factory.translation.IlrMemberWithParametersTranslation
addParameter, clearParameters, getParameterTypes, getSignature, isTranslated, removeParameter, setTranslated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrMethodTranslation

public IlrMethodTranslation()
Method Detail

getName

public String getName()
Returns the name of the method.

Returns:
The name of the method.

setName

public void setName(String name)
Sets the name of the method.

Parameters:
name - The name of the method.

getDisplayName

public String getDisplayName()
Returns the display name, that is, the name and signature.

Returns:
The display name of the method.

getBody

public IlrBody getBody()
Returns the body. This body is the body of a function used as the method implementation. If the method return type is not void, the body must end by a return statement returning the execution class corresponding to the method return type. The parameters of the constructor can be used in the body.

Returns:
The body.

setBody

public void setBody(IlrBody body)
Sets the body.

Parameters:
body - The body.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013