Enum AbstractPathRuleMatchExpression.MatchState

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int offset  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MatchState​(int offset)
      Creates a new instance.
    • Field Detail

      • offset

        private int offset
    • Constructor Detail

      • MatchState

        private MatchState​(int offset)
        Creates a new instance.
        Parameters:
        offset - the offset (for skipping the underlying wildcard)
    • Method Detail

      • values

        public static AbstractPathRuleMatchExpression.MatchState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AbstractPathRuleMatchExpression.MatchState c : AbstractPathRuleMatchExpression.MatchState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AbstractPathRuleMatchExpression.MatchState valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getOffset

        public int getOffset()
        Returns the offset for this match state.
        Returns:
        the offset (for skipping underlying wildcard in case of try-and-backtrack, 0 if no skipping is required)