Class SubexpressionCall

All Implemented Interfaces:
AbstractState<Term,ASTTransition>, JsonConvertible

public class SubexpressionCall extends QuantifiableTerm
  • Method Details

    • copy

      public SubexpressionCall copy(RegexAST ast)
      Description copied from class: RegexASTNode
      Copy this node only, without any child nodes. The ID and minPath of the copied nodes is left unset.
      Specified by:
      copy in class QuantifiableTerm
      Parameters:
      ast - RegexAST the node should belong to.
      Returns:
      A shallow copy of this node.
    • copyRecursive

      public SubexpressionCall copyRecursive(RegexAST ast, CompilationBuffer compilationBuffer)
      Description copied from class: RegexASTNode
      Recursively copy this subtree. This method should be used instead of CopyVisitor if the copying process is required to be thread-safe. The ID and minPath of the copied nodes is left unset.
      Specified by:
      copyRecursive in class Term
      Parameters:
      ast - RegexAST the new nodes should belong to.
      Returns:
      A deep copy of this node.
    • getParent

      public Sequence getParent()
      Description copied from class: RegexASTNode
      Gets the syntactic parent of this AST node.
      Overrides:
      getParent in class RegexASTNode
    • getGroupNr

      public int getGroupNr()
      Returns the capture group number this subexpression call is referring to, e.g. the referenced group of \g<1> is 1.
    • isUnrollingCandidate

      public boolean isUnrollingCandidate()
      Description copied from class: QuantifiableTerm
      Returns true iff the parser should try to unroll this term's quantifier.
      Specified by:
      isUnrollingCandidate in class QuantifiableTerm
    • equalsSemantic

      public boolean equalsSemantic(RegexASTNode obj, boolean ignoreQuantifier)
      Specified by:
      equalsSemantic in class QuantifiableTerm
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public JsonValue toJson()