ilog.rules.vocabulary.model.bom

Class IlrBOMVocabularyBuilder.MethodSignature

  • java.lang.Object
    • ilog.rules.vocabulary.model.bom.IlrBOMVocabularyBuilder.MethodSignature
  • Enclosing class:
    IlrBOMVocabularyBuilder


    public static class IlrBOMVocabularyBuilder.MethodSignature
    extends java.lang.Object
    This nested class represent a Method from the underlying Object Model. A method is characterized by a name, a return type, and a list of argument types. Refer to the type section to see which type names can be used in this class. Objects of this class can be created using IlrBOMVocabularyBuilder.createMethodSignature() API to be used in the Builder API.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrBOMVocabularyBuilder.Domain getArgumentDomain(int i)
      This method returns the argument domain that may has been assigned to the ith argument of this method if any.
      java.util.List<IlrBOMVocabularyBuilder.Domain> getArgumentDomains()
      This method returns the domains associated to the method arguments of the method represented by this Method Signature.
      java.util.List<java.lang.String> getArgumentTypes()
      This method returns the list of method argument types.
      IlrBOMVocabularyBuilder.Domain getMethodDomain()
      This method returns the domain associated to the method represented by this Method Signature.
      java.lang.String getMethodName()
      This method returns the name of the Method object.
      java.lang.String getReturnType()
      This method returns the return type of this Method object.
      boolean isStatic()
      This method returns true if this method is static.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrBOMVocabularyBuilder.MethodSignature

        public IlrBOMVocabularyBuilder.MethodSignature(java.lang.String methodName,
                                               java.lang.String returnType,
                                               java.util.List<java.lang.String> argumentTypes,
                                               IlrBOMVocabularyBuilder.Domain methodDomain,
                                               java.util.List<IlrBOMVocabularyBuilder.Domain> argumentDomains,
                                               boolean isStatic)
        This constructor creates a Method object from a method name, a return type and a list of arguments.
        Parameters:
        methodName - the name of the method. Can't be null.
        returnType - the return type as specified in the Type Section. If null, void is assumed
        argumentTypes - a list of arguments types as specified in the Type Section. Can be null if the method has no arguments
        methodDomain - a Domain associated to the return value of this method. Can be null.
        argumentDomains - a list of domains associated to method arguments. This list must have the same number of elements as argumentTypes. If no domain is associated to an argument, a null value must be put in this list. This list can be null if no domain are set on method arguments.
        isStatic - a boolean that specifies whether this method is static.
    • Method Detail

      • getMethodName

        public java.lang.String getMethodName()
        This method returns the name of the Method object.
        Returns:
        the method name. Can't be null.
      • getReturnType

        public java.lang.String getReturnType()
        This method returns the return type of this Method object.
        Returns:
        a return type or null if none has been specified
      • getArgumentTypes

        public java.util.List<java.lang.String> getArgumentTypes()
        This method returns the list of method argument types.
        Returns:
        a list of argument types.
      • getMethodDomain

        public IlrBOMVocabularyBuilder.Domain getMethodDomain()
        This method returns the domain associated to the method represented by this Method Signature.
        Returns:
        a Domain object or null if none.
      • getArgumentDomains

        public java.util.List<IlrBOMVocabularyBuilder.Domain> getArgumentDomains()
        This method returns the domains associated to the method arguments of the method represented by this Method Signature.
        Returns:
        a list of Domain object or null if none.
      • isStatic

        public boolean isStatic()
        This method returns true if this method is static.
        Returns:
        true if this method is static
      • getArgumentDomain

        public IlrBOMVocabularyBuilder.Domain getArgumentDomain(int i)
        This method returns the argument domain that may has been assigned to the ith argument of this method if any.
        Parameters:
        i - the argument index
        Returns:
        a Domain object or null.

© Copyright IBM Corp. 1987, 2017