ilog.rules.bom.dynamic

Class IlrDynamicMethod

    • Method Detail

      • getNativeMethod

        public java.lang.reflect.Method getNativeMethod()
        Returns the native method represented by this IlrMethod, or null.
        Specified by:
        getNativeMethod in interface IlrMethod
        Since:
        JRules 5.0
        Returns:
        The native method represented by this IlrMethod, or null.
      • isAbstract

        public boolean isAbstract()
        Returns true if the method is abstract.
        Specified by:
        isAbstract in interface IlrMethod
      • setAbstract

        public void setAbstract(boolean flag)
        Sets the 'abstract' property of this method. Initially, this property is false.
        Specified by:
        setAbstract in interface IlrMutableMethod
        Parameters:
        flag - the new value of the 'static' property.
      • setSynchronized

        public void setSynchronized(boolean flag)
        Sets the 'synchronized' property of this method. Initially, this property is false.
        Specified by:
        setSynchronized in interface IlrMutableMethod
        Parameters:
        flag - the new value of the 'synchronized' property.
      • setOperator

        public void setOperator(boolean flag)
        Sets the 'operator' property of this method. Initially, this property is false.
        Specified by:
        setOperator in interface IlrMutableMethod
        Parameters:
        flag - the new value of the 'operator' property.
      • setVarArgs

        public void setVarArgs(boolean flag)
        Sets the 'varArgs' property of this method. Initially, this property is false.
        Specified by:
        setVarArgs in interface IlrMutableMethod
        Parameters:
        flag - the new value of the 'varArgs' property.
      • getMemberType

        public IlrType getMemberType()
        Returns the type of the member. The returned type depends on the actual kind of member, yet you can expect that it will the type of an attribute or the returned type for a method.
        Specified by:
        getMemberType in interface IlrMember
        Overrides:
        getMemberType in class IlrDynamicMember
        Returns:
        The type of the member.
      • getMethodExceptions

        public java.util.List getMethodExceptions()
        Returns a list of classes which are exceptions that may be thrown by this method. Note that if the method throws no exceptions, the return value may be null or it may be an empty list.
        Specified by:
        getMethodExceptions in interface IlrMethod
      • fixExceptionTypes

        protected java.util.List fixExceptionTypes()
      • addException

        public void addException(IlrClass aClass)
        Adds a class to the 'throws' clause of this method.
        Specified by:
        addException in interface IlrMutableMethod
        Parameters:
        aClass - the class that is added to the exceptions list.
      • getParameters

        public java.util.List getParameters()
        Returns the list of parameters for this member. Note that if the member has no parameters, the return value may be null or it may be an empty list.
        Specified by:
        getParameters in interface IlrMemberWithParameter
      • setParameters

        public void setParameters(java.util.List parameters)
        Sets the parameter of this member.
        Specified by:
        setParameters in interface IlrMutableMemberWithParameter
        Parameters:
        parameters - The parameters.
      • removeParameter

        public boolean removeParameter(IlrParameter parameter)
        Removes a parameter from this member's parameters
        Specified by:
        removeParameter in interface IlrMutableMemberWithParameter
        Parameters:
        parameter - The parameter to remove.
        Returns:
        true If the parameter was removed
      • getGenericInfo

        public IlrMethod.IlrGenericMethodInfo getGenericInfo()
        Description copied from interface: IlrMethod
        Returns the generic information about this method, or null if the method is neither a generic nor an instantiation of a generic method.
        Specified by:
        getGenericInfo in interface IlrMethod
        Returns:
        Generic information, or null.

© Copyright IBM Corp. 1987, 2017