Class ParseContext

java.lang.Object
io.github.syst3ms.skriptparser.parsing.ParseContext

public class ParseContext extends Object
An object that stores data about how an object was parsed. By opposition to MatchContext, this object is immutable, and generated after matching is complete.
See Also:
  • Constructor Details

  • Method Details

    • getMatches

      public List<MatchResult> getMatches()
      Returns:
      all the regex that were matched
    • getElement

      public PatternElement getElement()
      Returns:
      the PatternElement that was successfully matched
    • getMarks

      public List<String> getMarks()
      Returns:
      the parse marks
    • getNumericMark

      public int getNumericMark()
      Parses and combines all valid numerical mark into one final result by XOR-ing each match with the previous match.
      Returns:
      the numerical parse mark
    • hasMark

      public boolean hasMark(String parseMark)
      Returns:
      whether the given parse mark was included when matching
    • getExpressionString

      public String getExpressionString()
      Returns:
      the pattern element in string form
    • getParserState

      public ParserState getParserState()
    • getLogger

      public SkriptLogger getLogger()