ilog.rules.bom

Interface IlrClass

    • Method Detail

      • getGenericInfo

        IlrClass.IlrGenericClassInfo getGenericInfo()
        Returns the generic information about this class, or null if the class is neither a generic nor an instantiation of a generic class.
        Since:
        JRules 6.0
        Returns:
        Generic information, or null.
      • isInterface

        boolean isInterface()
        Returns true if the class is an interface.
      • isStatic

        boolean isStatic()
        Returns true if the class is static.
      • isPublic

        boolean isPublic()
        Returns true if the class is public.
      • isPrivate

        boolean isPrivate()
        Returns true if the class is private.
      • isProtected

        boolean isProtected()
        Returns true if the class is protected.
      • isFinal

        boolean isFinal()
        Returns true if the class is final.
      • isAbstract

        boolean isAbstract()
        Returns true if the class is abstract.
      • getSuperclasses

        java.util.List getSuperclasses()
        Returns the list of superclasses of this class. Note that if there are no superclasses, this method may either return null or an empty list.
      • getNestedClasses

        java.util.List getNestedClasses()
        Returns the list of classes nested in this class. Note that if there are no nested classes, this method may either return null or an empty list.
      • getConstructors

        java.util.List getConstructors()
        Returns the list of constructors in this class. Note that if there are no constructors, this method may either return null or an empty list.
      • getMethods

        java.util.List getMethods()
        Returns the list of methods in this class. Note that if there are no methods, this method may either return null or an empty list.
        See Also:
        IlrMethod
      • getMethods

        java.util.List getMethods(java.lang.String name)
        Returns the list of methods of a certain name. Note that if there are no methods, this method may either return null or an empty list.
        Since:
        JRules 6.0
        See Also:
        IlrMethod
      • getAttributes

        java.util.List getAttributes()
        Returns the list of attributes in this class. Note that if there are no attributes, this method may either return null or an empty list.
        See Also:
        IlrAttribute
      • getComponentProperties

        java.util.List getComponentProperties()
        Returns the list of component properties in this class. Note that if there are no component properties, this method may either return null or an empty list.
        See Also:
        IlrComponentProperty
      • getIndexedComponentProperties

        java.util.List getIndexedComponentProperties()
        Returns the list of indexed component properties in this class. Note that if there are no indexed component properties, this method may either return null or an empty list.
        See Also:
        IlrIndexedComponentProperty
      • visit

        boolean visit(IlrObjectModel.Visitor visitor)
        Deprecated. Use IlrVisitor instead.
        Calls the appropriate visitor's visitXXX methods for each model element (nested class, method, attribute) contained in this class. If a call to one of the visitor's visitXXX methods returns false then this method returns immediately the value false. Otherwise true is returned after all elements have been visited.
        Parameters:
        visitor - a visitor
        Returns:
        true if the class content was entirely visited.
      • isSubclassOf

        boolean isSubclassOf(IlrClass otherClass)
        Tests whether a class is a direct or indirect subclass of another class.
        Parameters:
        otherClass - an IlrClass
        Returns:
        true if this class is either directly or transitively a subclass of otherClass.
      • getFirstSuperclass

        IlrClass getFirstSuperclass()
        Returns the fist class in the list of superclasses of this class which is not an interface and null if there is no such class.
      • allSuperclasses

        java.util.Iterator allSuperclasses()
        Returns an iterator over the transitive closure of superclasses and superinterfaces of this class.
      • allMethods

        java.util.Iterator allMethods()
        Returns an iterator over the the methods declared in this class along with all methods inherited from superclasses.
      • allAttributes

        java.util.Iterator allAttributes()
        Returns an iterator over the the attributes declared in this class along with all attributes inherited from superclasses.
      • allComponentProperties

        java.util.Iterator allComponentProperties()
        Returns an iterator over the the component properties declared in this class along with all component properties inherited from superclasses.
      • allIndexedComponentProperties

        java.util.Iterator allIndexedComponentProperties()
        Returns an iterator over the the indexed component properties declared in this class along with all indexed component properties inherited from superclasses.
      • interfaces

        java.util.Iterator interfaces()
        Returns an iterator over the direct superinterfaces of this class.
      • allInterfaces

        java.util.Iterator allInterfaces()
        Returns an iterator over the transitive closure of superinterfaces of this class.
      • allInheritedMethods

        java.util.Iterator allInheritedMethods()
        Returns an iterator over the methods inherited from superclasses.
      • allInheritedAttributes

        java.util.Iterator allInheritedAttributes()
        Returns an iterator over the attributes inherited from superclasses.
      • members

        java.util.Iterator members()
        Returns an iterator over all declared members (attributes, constructors and methods) of this class.
      • allMembers

        java.util.Iterator allMembers()
        Returns an iterator over all declared and inherited members (attributes, constructors and methods) of this class.
      • allInheritedMembers

        java.util.Iterator allInheritedMembers()
        Returns an iterator over all inherited members (attributes, constructors and methods) of this class.
      • getConstructor

        IlrConstructor getConstructor(IlrType... arguments)
        Searches for a constructor having given parameter types.
        Parameters:
        arguments - an array of types
        Returns:
        the constructor if any which matches the given argument types.
      • getMethod

        IlrMethod getMethod(java.lang.String name,
                          IlrType... arguments)
        Searches for a method having a given name and given parameter types.
        Parameters:
        name - a character string.
        arguments - an array of types
        Returns:
        the method if any which has the given name and matches the given argument types.
      • getMethod

        IlrMethod getMethod(java.lang.String name,
                          java.util.List arguments)
        Searches for a method with a given name and given parameter types.
        Since:
        JRules 6.0
        Parameters:
        name - A character string.
        arguments - A list of IlrTypes or IlrParameters.
        Returns:
        The method, if any, which has the given name and matches the given argument types.
      • getAttribute

        IlrAttribute getAttribute(java.lang.String name)
        Searches for an attribute having a given name.
        Parameters:
        name - a character string.
        Returns:
        the attribute, if any, having the given name
      • getComponentProperty

        IlrComponentProperty getComponentProperty(java.lang.String name)
        Searches for a component property having a given name.
        Parameters:
        name - a character string.
        Returns:
        the component property, if any, having the given name
      • getIndexedComponentProperty

        IlrIndexedComponentProperty getIndexedComponentProperty(java.lang.String name,
                                                              IlrType... arguments)
        Searches for an indexed component property having a given name and given parameter types.
        Parameters:
        name - a character string.
        arguments - an array of types
        Returns:
        the indexed component property, if any which has the given name and matches the given argument types

© Copyright IBM Corp. 1987, 2017