Interface IModifierHolder

    • Method Detail

      • getModifierCount

        int getModifierCount()
        Returns the number of modifiers.
        Returns:
        the number of modifiers
      • getModifier

        IModifier getModifier​(int index)
        Returns the specified modifier.
        Parameters:
        index - the 0-based index of the modifier to return
        Returns:
        the specified modifier
        Throws:
        java.lang.IndexOutOfBoundsException - if index < 0 || index &get;=getModifierCount()
      • hasModifier

        boolean hasModifier​(IModifier modifier)
        Returns whether this variable declaration has a given modifier.
        Parameters:
        modifier - the modifier to search for
        Returns:
        true if this variable declaration has the modifier attached, false else