ilog.rules.factory.translation

Class IlrMemberWithParametersTranslation

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


    public abstract class IlrMemberWithParametersTranslation
    extends java.lang.Object
    implements java.io.Serializable
    IlrMemberWithParametersTranslation is an abstract class used for the translation of a member with parameters.
    Since:
    JRules 6.0
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addParameter(java.lang.String parameterType)
      Adds a parameter type.
      void clearParameters()
      Removes all parameters.
      java.util.List getParameterTypes()
      Returns the list of parameter types.
      java.lang.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(java.lang.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 java.util.List getParameterTypes()
        Returns the list of parameter types.
        Returns:
        The list of parameter types. This may be an empty list.
      • getSignature

        public java.lang.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.

© Copyright IBM Corp. 1987, 2017