Package org.jruby.ast

Class HashPatternNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.HashPatternNode

public class HashPatternNode extends Node
  • Constructor Details

    • HashPatternNode

      public HashPatternNode(int line, Node restArg, HashNode keywordArgs)
  • Method Details

    • accept

      public <T> T accept(NodeVisitor<T> visitor)
      Specified by:
      accept in class Node
    • childNodes

      public List<Node> childNodes()
      Specified by:
      childNodes in class Node
    • getNodeType

      public NodeType getNodeType()
      Specified by:
      getNodeType in class Node
      Returns:
      the nodeId
    • getConstant

      public Node getConstant()
    • setConstant

      public void setConstant(Node constant)
    • getArgumentSize

      public int getArgumentSize()
    • getRestArg

      public Node getRestArg()
    • hasRestArg

      public boolean hasRestArg()
    • isNamedRestArg

      public boolean isNamedRestArg()
    • hasKeywordArgs

      public boolean hasKeywordArgs()
    • getKeywordArgs

      public HashNode getKeywordArgs()
    • getKeys

      public Node[] getKeys()
    • hashNamedKeywordRestArg

      public boolean hashNamedKeywordRestArg()