Package org.jruby.ast

Class DRegexpNode

All Implemented Interfaces:
Iterable<Node>, ILiteralNode

public class DRegexpNode extends DNode implements ILiteralNode
A regexp which contains some expressions which will need to be evaluated every time the regexp is used for a match.
  • Constructor Details

    • DRegexpNode

      public DRegexpNode(int line, RegexpOptions options, org.jcodings.Encoding encoding)
  • Method Details

    • getNodeType

      public NodeType getNodeType()
      Overrides:
      getNodeType in class ListNode
      Returns:
      the nodeId
    • accept

      public <T> T accept(NodeVisitor<T> iVisitor)
      Accept for the visitor pattern.
      Overrides:
      accept in class ListNode
      Parameters:
      iVisitor - the visitor
    • getOnce

      public boolean getOnce()
      Gets the once.
      Returns:
      Returns a boolean
    • getOptions

      public RegexpOptions getOptions()
      Gets the options.