Uses of Class
org.jruby.ast.Node
Packages that use Node
Package
Description
-
Uses of Node in org.jruby
Modifier and TypeMethodDescriptionRuby.parse(String content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) Deprecated.Ruby.parse(ByteList content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) Ruby.parseEval(String content, String file, DynamicScope scope, int lineNumber) Ruby.parseEval(ByteList content, String file, DynamicScope scope, int lineNumber) Ruby.parseFile(InputStream in, String file, DynamicScope scope) Ruby.parseFile(InputStream in, String file, DynamicScope scope, int lineNumber) private NodeRuby.parseFileAndGetAST(InputStream in, String file, DynamicScope scope, int lineNumber, boolean isFromMain) Ruby.parseFileFromMain(InputStream in, String file, DynamicScope scope) private NodeRuby.parseFileFromMainAndGetAST(InputStream in, String file, DynamicScope scope) Ruby.parseFromMain(InputStream inputStream, String filename) Parse the script contained in the given input stream, using the given filename as the name of the script, and return the root Node.Ruby.parseInline(InputStream in, String file, DynamicScope scope) Modifier and TypeMethodDescriptionRuby.runInterpreter(Node scriptNode) Ruby.runInterpreter(ThreadContext context, Node rootNode, IRubyObject self) Ruby.runInterpreterBody(Node scriptNode) This is used for the "gets" loop, and we bypass 'load' to use an already-prepared, already-pushed scope for the script body.Ruby.runNormally(Node scriptNode) Run the specified script without any of the loop-processing wrapper code.Ruby.runNormally(Node scriptNode, boolean wrap) Run the specified script without any of the loop-processing wrapper code.Ruby.runNormally(Node scriptNode, IRubyObject self, boolean wrap) Ruby.runWithGetsLoop(Node scriptNode, boolean printing, boolean processLineEnds, boolean split, boolean unused) Deprecated.Ruby.tryCompile(Node node) Try to compile the code associated with the given Node, returning an instance of the successfully-compiled Script or null if the script could not be compiled. -
Uses of Node in org.jruby.ast
Subclasses of Node in org.jruby.astModifier and TypeClassDescriptionclassRepresents an alias statement (alias newName oldName).classRepresents a && (and) operator.classclassRepresents the argument declarations of a method.classclassSimple Node for named entities.classRepresents an array.classBase class of any node which can be assigned to.classNode that represents an assignment of either an array element or attribute.classRegexp back reference: - $& last successful match - $+ highest numbered group matched in last successful match.classBegin/End block.classRepresents a big integer literal.classAn explicit block argument (&my_block) in parameter list.classRepresents a block of nodes (read that as list).classExplicit block argument (on caller side): foobar(1, 2, &foo) foobar(1, 2, &lhs_which_returns_something_block/proc_like) bodyNode is any expression which can return something which is ultimately coercible to a proc.classRepresents a 'break' statement.classA method or operator call.classA Case statement.classA class statement (name, superClass, body).classClass variable assignment node.classDeprecated.classAccess to a class variable.classclassRepresents a bare class declaration (e.g.classRepresents a '::' constant access or method call (Java::JavaClass).classGlobal scope node (::FooBar).classclassDeclaration (and assignment) of a Constant.classThe access to a Constant.classAn assignment to a dynamic variable (e.g.classa defined statement.classmethod definition node.classRepresents a singleton method definition.classBase class for all D (e.g.classRepresents a range literal.classA regexp which contains some expressions which will need to be evaluated every time the regexp is used for a match.classA string which contains some dynamic elements which needs to be evaluated (introduced by #).classNode representing symbol in a form like ':"3jane"'.classAccess a dynamic variable (e.g.classDynamic backquote string.classRepresents __ENCODING__.classAn 'ensure' statement.classRepresents an #{} expression in a string.classRepresents a false literal.classRepresents a method call with self as an implicit receiver.classRepresents __FILE__ nodesclassRepresents an integer literal.classA Range in a boolean expression (named after a FlipFlop component in electronic?).classRepresents a float literal.classA 'for' statement.classRepresents an assignment to a global variable.classaccess to a global variable.classA Literal Hash that can represent either a {a=&b, c=&d} type expression or the list of default values or kwarg in a method call.classan 'if' statement.classRepresents an instance variable assignment.classRepresents an instance variable accessor.classRepresents a block.classclassclassStubby lambda node (1.9 only)classAll Nodes which have a list representation inherit this.classThis is not a node in the classic sense in that it has no defined or interpret method which can be called.classAn assignment to a local variable.classAccess a local variableclassclassclassUsed when a Regexp literal is the RHS of a match call.classclassBase class for DefnNode and DefsNodeclassRepresents a module definition.classclassNote: This is a dead class but we leave it because people write against Visitor and we do not want those consumers to break.classRepresents a 'next' statement.classA node which behaves like a nil node, but is not actually present in the AST as a syntactical element (e.g.classrepresents 'nil'classRepresents a $number ($0..$9) variable.classAny node representing a numeric value.classclassA::B ||= 1classclassclassRepresents an operator assignment to an element.classclassrepresents '||' (or) statementsclassCaptures END statements (END {...})classA pre-execution construction (BEGIN { ...classA pre-execution construction (BEGIN { ...classclassRepresents a 'redo'classRepresents a simple regular expression literal.classMarker to indicate that rather than assigning nil (where in multiple places we have nulls getting implicitly converted to nils) we should raise an error.classRepresents the contents of a rescue to be evaluatedclassf rescue nilclassRepresents a rescue statementclassclassRepresents a 'retry' statement.classRepresents a return statement.classRepresents the top of the AST.classSingleton class definition.classRepresents 'self' keywordclassclassRepresents the unassignable star in a multiple assignent (e.g.classRepresenting a simple String literal.classA call to super(...) with arguments to a method.classclassRepresents a symbol (:symbol_name).classRepresents 'true'.classRepresents an 'undef' statement.classa bare '*' or nothing.classRepresents an until statement.classRepresents an alias of a global variable.classRubyMethod call without any argumentsclassRepresents a when conditionclassclassRepresents a while statement.classA Backtick(`) stringclassRepresents a yield statement.classzero length listclassa call to 'super' with no arguments in a method.Fields in org.jruby.ast declared as NodeModifier and TypeFieldDescriptionprivate final Node[]ArgsNode.argsprivate NodeAttrAssignNode.argsNodeprivate NodeBlockPassNode.argsNodeUsed by the arg_blk_pass and new_call, new_fcall and new_super methods in ParserSupport to temporary save the args node.private NodeCallNode.argsNodeprotected NodeFCallNode.argsNodeprivate final NodeOpElementAsgnNode.argsNodeprivate final NodeSuperNode.argsNodeprivate final NodeYieldNode.argsNodeprivate final NodeDotNode.beginNodeprivate final NodeFlipNode.beginNodeprivate final NodeAttrAssignNode.blockNodeprivate final NodeOpElementAsgnNode.blockNodeprivate final NodeEvStrNode.bodyprivate final NodeBeginNode.bodyNodeprivate final NodeBlockPassNode.bodyNodeprivate final NodeClassNode.bodyNodeprivate final NodeEnsureNode.bodyNodeprivate final NodeIterNode.bodyNodeprotected final NodeMethodDefNode.bodyNodeprivate final NodeModuleNode.bodyNodeprivate final NodeRescueBodyNode.bodyNodeprivate final NodeRescueNode.bodyNodeprivate final NodeRootNode.bodyNodeprivate final NodeSClassNode.bodyNodeprivate final NodeUntilNode.bodyNodeprotected final NodeWhenNode.bodyNodeprivate final NodeWhileNode.bodyNodeprivate final NodeCaseNode.caseNodethe case expression.private final NodeIfNode.conditionprivate final NodeUntilNode.conditionNodeprivate final NodeWhileNode.conditionNodeprivate final NodeIfNode.elseBodyprivate NodeCaseNode.elseNodeprivate final NodeRescueNode.elseNodeprivate static final Node[]ListNode.EMPTYprivate final NodeDotNode.endNodeprivate final NodeFlipNode.endNodeprivate final NodeEnsureNode.ensureNodeprivate final NodeRescueBodyNode.exceptionNodesprivate final NodeDefinedNode.expressionNodeprotected final NodeWhenNode.expressionNodesprivate final NodeAndNode.firstNodeprivate final NodeArgsCatNode.firstNodeprivate NodeArgsPushNode.firstNodeprivate final NodeOpAsgnAndNode.firstNodeprivate final NodeOpAsgnOrNode.firstNodeprivate final NodeOrNode.firstNodeprotected NodeCallNode.iterNodeprotected NodeFCallNode.iterNodeprivate NodeForNode.iterNodeprivate NodeSuperNode.iterNodeprivate NodeZSuperNode.iterNodeprotected final NodeColon2Node.leftNodeprivate final NodeOpAsgnConstDeclNode.lhsprivate Node[]ListNode.listprivate final NodeUndefNode.nameprivate final NodeAliasNode.newNameprivate final NodeWhenNode.nextCaseprivate final NodeNewlineNode.nextNodeprivate static final Node[]ArgsNode.NO_ARGSprotected final NodeSplatNode.nodeprotected final NodeSValueNode.nodeprivate final NodeAliasNode.oldNameprotected final NodeAttrAssignNode.receiverNodeprivate final NodeCallNode.receiverNodeprivate final NodeDefsNode.receiverNodeprivate final NodeMatch2Node.receiverNodeprivate final NodeMatch3Node.receiverNodeprivate final NodeOpAsgnNode.receiverNodeprivate final NodeOpElementAsgnNode.receiverNodeprivate final NodeSClassNode.receiverNodeprivate final NodeMatchNode.regexpNodeprivate final NodeMultipleAsgnNode.restprivate final NodeOpAsgnConstDeclNode.rhsprivate final NodeAndNode.secondNodeprivate final NodeArgsCatNode.secondNodeprivate NodeArgsPushNode.secondNodeprivate final NodeOpAsgnAndNode.secondNodeprivate final NodeOpAsgnOrNode.secondNodeprivate final NodeOrNode.secondNodeprivate NodeListNode.singleThis is used to reduce the need to allocate an array for the many single-element ListNode instances in a typical Ruby app.private final NodeClassNode.superNodeprivate final NodeIfNode.thenBodyprivate final NodeOptArgNode.valueprivate NodeAssignableNode.valueNodeprivate final NodeBreakNode.valueNodeprivate final NodeMatch2Node.valueNodeprivate final NodeMatch3Node.valueNodeprivate final NodeNextNode.valueNodeprivate final NodeOpAsgnNode.valueNodeprivate final NodeOpElementAsgnNode.valueNodeprivate final NodeReturnNode.valueNodeprivate final NodeIterNode.varNodeFields in org.jruby.ast with type parameters of type NodeModifier and TypeFieldDescriptionNode.EMPTY_LISTprivate final List<KeyValuePair<Node,Node>> HashNode.pairsprivate final List<KeyValuePair<Node,Node>> HashNode.pairsMethods in org.jruby.ast with type parameters of type NodeMethods in org.jruby.ast that return NodeModifier and TypeMethodDescriptionprivate Node[]ListNode.arrayifySingle(Node single) Node[]ListNode.children()ListNode.get(int idx) Node[]ArgsNode.getArgs()AttrAssignNode.getArgsNode()Gets the argsNode.BlockPassNode.getArgsNode()Gets the argsNode.CallNode.getArgsNode()Gets the argsNode representing the method's arguments' value for this call.FCallNode.getArgsNode()Gets the argsNode.IArgumentNode.getArgsNode()OpElementAsgnNode.getArgsNode()Gets the argsNode.SuperNode.getArgsNode()Gets the argsNode.YieldNode.getArgsNode()Gets the argsNode.DotNode.getBeginNode()Gets the beginNode.FlipNode.getBeginNode()Gets the beginNode.AttrAssignNode.getBlockNode()OpElementAsgnNode.getBlockNode()EvStrNode.getBody()Gets the evaluatedNode.LambdaNode.getBody()BeginNode.getBodyNode()Gets the bodyNode.BlockPassNode.getBodyNode()Gets the bodyNode.ClassNode.getBodyNode()Gets the body of this class.DefNode.getBodyNode()Gets the body of this class.EnsureNode.getBodyNode()Gets the bodyNode.IScopingNode.getBodyNode()IterNode.getBodyNode()Gets the bodyNode.MethodDefNode.getBodyNode()Gets the body of this class.ModuleNode.getBodyNode()Gets the body of this class.RescueBodyNode.getBodyNode()Gets the bodyNode.RescueNode.getBodyNode()Gets the bodyNode.RootNode.getBodyNode()First real AST node to be interpretedSClassNode.getBodyNode()Gets the body of this class.UntilNode.getBodyNode()Gets the bodyNode.WhenNode.getBodyNode()Gets the bodyNode.WhileNode.getBodyNode()Gets the bodyNode.CaseNode.getCaseNode()Gets the caseNode.IfNode.getCondition()Gets the condition.UntilNode.getConditionNode()Gets the conditionNode.WhileNode.getConditionNode()Gets the conditionNode.ConstDeclNode.getConstNode()Get the full path, including the name of the new constant (in Foo::BAR it is Foo::BAR) or null.IfNode.getElseBody()Gets the elseBody.CaseNode.getElseNode()RescueNode.getElseNode()Gets the elseNode.DotNode.getEndNode()Gets the endNode.FlipNode.getEndNode()Gets the endNode.EnsureNode.getEnsureNode()Gets the ensureNode.RescueBodyNode.getExceptionNodes()Gets the exceptionNodes.DefinedNode.getExpressionNode()Gets the expressionNode.WhenNode.getExpressionNodes()Get the expressionNode(s).AndNode.getFirstNode()Gets the firstNode.ArgsCatNode.getFirstNode()ArgsPushNode.getFirstNode()BinaryOperatorNode.getFirstNode()Gets the firstNode.OpAsgnAndNode.getFirstNode()Gets the firstNode.OpAsgnConstDeclNode.getFirstNode()OpAsgnOrNode.getFirstNode()Gets the firstNode.OrNode.getFirstNode()Gets the firstNode.BlockAcceptingNode.getIterNode()CallNode.getIterNode()FCallNode.getIterNode()Get the node that represents a block or a block variable.ForNode.getIterNode()SuperNode.getIterNode()ZSuperNode.getIterNode()ListNode.getLast()Colon2Node.getLeftNode()Gets the leftNode.UndefNode.getName()Gets the name.AliasNode.getNewName()Gets the newName.WhenNode.getNextCase()Gets the next case node (if any).NewlineNode.getNextNode()Gets the nextNode.AliasNode.getOldName()Gets the oldName.AttrAssignNode.getReceiverNode()Gets the receiverNode.CallNode.getReceiverNode()Gets the receiverNode.DefsNode.getReceiverNode()Gets the receiverNode.Match2Node.getReceiverNode()Gets the receiverNode.Match3Node.getReceiverNode()Gets the receiverNode.OpAsgnNode.getReceiverNode()Gets the receiverNode.OpElementAsgnNode.getReceiverNode()Gets the receiverNode.SClassNode.getReceiverNode()Gets the receiverNode.MatchNode.getRegexpNode()Gets the regexpNode.MultipleAsgnNode.getRest()AndNode.getSecondNode()Gets the secondNode.ArgsCatNode.getSecondNode()ArgsPushNode.getSecondNode()BinaryOperatorNode.getSecondNode()Gets the secondNode.OpAsgnAndNode.getSecondNode()Gets the secondNode.OpAsgnConstDeclNode.getSecondNode()OpAsgnOrNode.getSecondNode()Gets the secondNode.OrNode.getSecondNode()Gets the secondNode.ClassNode.getSuperNode()Gets the superNode.IfNode.getThenBody()Gets the thenBody.OptArgNode.getValue()SplatNode.getValue()SValueNode.getValue()AssignableNode.getValueNode()Gets the valueNode.BreakNode.getValueNode()Gets the valueNode.Match2Node.getValueNode()Gets the valueNode.Match3Node.getValueNode()Gets the valueNode.NextNode.getValueNode()Gets the valueNode.NonLocalControlFlowNode.getValueNode()OpAsgnNode.getValueNode()Gets the valueNode.OpElementAsgnNode.getValueNode()Gets the valueNode.RedoNode.getValueNode()RetryNode.getValueNode()ReturnNode.getValueNode()IterNode.getVarNode()Gets the varNode.private Node[]ListNode.growList(int mustBeDelta) AttrAssignNode.setArgsNode(Node argsNode) Set the argsNodeCallNode.setArgsNode(Node argsNode) Set the argsNode.FCallNode.setArgsNode(Node argsNode) Set the argsNode.IArgumentNode.setArgsNode(Node argsNode) BlockAcceptingNode.setIterNode(Node iterNode) CallNode.setIterNode(Node iterNode) FCallNode.setIterNode(Node iterNode) SuperNode.setIterNode(Node iterNode) ZSuperNode.setIterNode(Node iterNode) Methods in org.jruby.ast that return types with arguments of type NodeModifier and TypeMethodDescriptionAliasNode.childNodes()AndNode.childNodes()ArgsCatNode.childNodes()ArgsNode.childNodes()ArgsPushNode.childNodes()ArgumentNode.childNodes()AttrAssignNode.childNodes()BackRefNode.childNodes()BeginNode.childNodes()BignumNode.childNodes()BlockArgNode.childNodes()BlockPassNode.childNodes()BreakNode.childNodes()CallNode.childNodes()CaseNode.childNodes()ClassNode.childNodes()ClassVarAsgnNode.childNodes()ClassVarDeclNode.childNodes()Deprecated.ClassVarNode.childNodes()Colon2Node.childNodes()Colon3Node.childNodes()ComplexNode.childNodes()ConstDeclNode.childNodes()ConstNode.childNodes()DAsgnNode.childNodes()DefinedNode.childNodes()DefnNode.childNodes()DefsNode.childNodes()DotNode.childNodes()DVarNode.childNodes()EncodingNode.childNodes()EnsureNode.childNodes()EvStrNode.childNodes()FalseNode.childNodes()FCallNode.childNodes()FixnumNode.childNodes()FlipNode.childNodes()FloatNode.childNodes()ForNode.childNodes()GlobalAsgnNode.childNodes()GlobalVarNode.childNodes()HashNode.childNodes()IfNode.childNodes()InstAsgnNode.childNodes()InstVarNode.childNodes()IterNode.childNodes()KeywordArgNode.childNodes()LambdaNode.childNodes()ListNode.childNodes()Deprecated.LiteralNode.childNodes()LocalAsgnNode.childNodes()LocalVarNode.childNodes()Match2Node.childNodes()Match3Node.childNodes()MatchNode.childNodes()ModuleNode.childNodes()MultipleAsgnNode.childNodes()NewlineNode.childNodes()NextNode.childNodes()NilNode.childNodes()Node.childNodes()NthRefNode.childNodes()OpAsgnAndNode.childNodes()OpAsgnConstDeclNode.childNodes()OpAsgnNode.childNodes()OpAsgnOrNode.childNodes()OpElementAsgnNode.childNodes()OptArgNode.childNodes()OrNode.childNodes()RationalNode.childNodes()RedoNode.childNodes()RegexpNode.childNodes()RequiredKeywordArgumentValueNode.childNodes()RescueBodyNode.childNodes()RescueNode.childNodes()RetryNode.childNodes()ReturnNode.childNodes()RootNode.childNodes()SClassNode.childNodes()SelfNode.childNodes()SplatNode.childNodes()StarNode.childNodes()StrNode.childNodes()SuperNode.childNodes()SValueNode.childNodes()SymbolNode.childNodes()TrueNode.childNodes()UndefNode.childNodes()UntilNode.childNodes()VAliasNode.childNodes()VCallNode.childNodes()WhenNode.childNodes()WhileNode.childNodes()XStrNode.childNodes()YieldNode.childNodes()ZSuperNode.childNodes()Node.createList(Node node) Node.createList(Node... nodes) Node.createList(Node node1, Node node2) Node.createList(Node node1, Node node2, Node node3) HashNode.getPairs()HashNode.getPairs()ListNode.iterator()Methods in org.jruby.ast with parameters of type NodeModifier and TypeMethodDescriptionAdd other element to this listprotected voidListNode.addInternal(Node node) private voidListNode.addToSingle(Node single, Node node) private Node[]ListNode.arrayifySingle(Node single) Node.createList(Node node) Node.createList(Node... nodes) Node.createList(Node node1, Node node2) Node.createList(Node node1, Node node2, Node node3) AttrAssignNode.setArgsNode(Node argsNode) Set the argsNodevoidBlockPassNode.setArgsNode(Node argsNode) Sets the argsNode.CallNode.setArgsNode(Node argsNode) Set the argsNode.FCallNode.setArgsNode(Node argsNode) Set the argsNode.IArgumentNode.setArgsNode(Node argsNode) voidCaseNode.setElseNode(Node elseNode) BlockAcceptingNode.setIterNode(Node iterNode) CallNode.setIterNode(Node iterNode) FCallNode.setIterNode(Node iterNode) SuperNode.setIterNode(Node iterNode) ZSuperNode.setIterNode(Node iterNode) voidAssignableNode.setValueNode(Node valueNode) Sets the valueNode.Method parameters in org.jruby.ast with type arguments of type NodeModifier and TypeMethodDescriptionHashNode.add(KeyValuePair<Node, Node> pair) HashNode.add(KeyValuePair<Node, Node> pair) Constructors in org.jruby.ast with parameters of type NodeModifierConstructorDescriptionArgsCatNode(int line, Node firstNode, Node secondNode) ArgsPushNode(int line, Node firstNode, Node secondNode) AssignableNode(int line, Node valueNode, boolean containsAssignment) AttrAssignNode(int line, Node receiverNode, RubySymbol name, Node argsNode, Node blockNode, boolean isLazy) BlockPassNode(int line, Node bodyNode) CallNode(int line, Node receiverNode, RubySymbol name, Node argsNode, Node iterNode, boolean isLazy) ClassNode(int line, Colon3Node cpath, StaticScope scope, Node bodyNode, Node superNode, int endLine) ClassVarAsgnNode(int line, RubySymbol name, Node valueNode) ClassVarDeclNode(int line, RubySymbol name, Node valueNode) Deprecated.Colon2ConstNode(int line, Node leftNode, RubySymbol name) Colon2Node(int line, Node leftNode, RubySymbol name) ConstDeclNode(int line, RubySymbol name, INameNode constNode, Node valueNode) DAsgnNode(int line, RubySymbol name, int location, Node valueNode) DefinedNode(int line, Node expressionNode) DefnNode(int line, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine) DefsNode(int line, Node receiverNode, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine) EnsureNode(int line, Node bodyNode, Node ensureNode) FCallNode(int line, RubySymbol name, Node argsNode, Node iterNode) ForNode(int line, Node varNode, Node bodyNode, Node iterNode, StaticScope scope, int endLine) GlobalAsgnNode(int line, RubySymbol name, Node valueNode) InstAsgnNode(int line, RubySymbol name, Node valueNode) IterNode(int line, ArgsNode args, Node body, StaticScope scope, int endLine) Used for all non-for types of blocks.IterNode(int line, Node args, StaticScope scope, Node body, int endLine) Used by ForNode only.LambdaNode(int line, ArgsNode args, Node body, StaticScope scope, int endLine) Create a new ListNode.LocalAsgnNode(int line, RubySymbol name, int location, Node valueNode) Match2CaptureNode(int line, Node receiverNode, Node valueNode, int[] scopeOffsets) Match2Node(int line, Node receiverNode, Node valueNode) Match3Node(int line, Node receiverNode, Node valueNode) MethodDefNode(int line, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine) ModuleNode(int line, Colon3Node cpath, StaticScope scope, Node bodyNode, int endLine) MultipleAsgnNode(int line, ListNode pre, Node rest, ListNode post) NewlineNode(int line, Node nextNode) Deprecated.OpAsgnAndNode(int line, Node headNode, Node valueNode) OpAsgnConstDeclNode(int line, Node lhs, RubySymbol operator, Node rhs) OpAsgnNode(int line, Node receiverNode, Node valueNode, RubySymbol variableName, RubySymbol operatorName, boolean isLazy) OpAsgnOrNode(int line, Node headNode, Node valueNode) OpElementAsgnNode(int line, Node receiverNode, RubySymbol operatorName, Node argsNode, Node valueNode, Node blockNode) OptArgNode(int line, Node value) PostExeNode(int line, Node body, int endLine) PreExe19Node(int line, StaticScope scope, Node body, int endLine) PreExeNode(int line, StaticScope scope, Node body, int endLine) RescueBodyNode(int line, Node exceptionNodes, Node bodyNode, RescueBodyNode optRescueNode) RescueModNode(int line, Node bodyNode, RescueBodyNode rescueNode) RescueNode(int line, Node bodyNode, RescueBodyNode rescueNode, Node elseNode) ReturnNode(int line, Node valueNode) RootNode(int line, DynamicScope scope, Node bodyNode, String file) RootNode(int line, DynamicScope scope, Node bodyNode, String file, int coverageMode) SClassNode(int line, Node recvNode, StaticScope scope, Node bodyNode, int endLine) SValueNode(int line, Node node) WhenOneArgNode(int line, Node expressionNode, Node bodyNode, Node nextCase) Construct a new YieldNode.Constructor parameters in org.jruby.ast with type arguments of type NodeModifierConstructorDescriptionHashNode(int line, KeyValuePair<Node, Node> pair) HashNode(int line, KeyValuePair<Node, Node> pair) -
Uses of Node in org.jruby.ast.visitor
Subclasses of Node in org.jruby.ast.visitorMethods in org.jruby.ast.visitor with parameters of type NodeModifier and TypeMethodDescriptionprotected abstract TAbstractNodeVisitor.defaultVisit(Node node) protected VoidInstanceVariableFinder.defaultVisit(Node iVisited) static Set<RubySymbol>InstanceVariableFinder.findVariables(Node node) Walk a node and its children looking for instance variables using a new InstanceVariableFinder.protected voidAbstractNodeVisitor.visitChildren(Node node) protected TAbstractNodeVisitor.visitFirstChild(Node node) AbstractNodeVisitor.visitOther(Node node) NodeVisitor.visitOther(Node iVisited) Constructors in org.jruby.ast.visitor with parameters of type NodeModifierConstructorDescriptionOperatorCallNode(int line, Node receiverNode, RubySymbol name, Node argsNode, Node iterNode, boolean isLazy) -
Uses of Node in org.jruby.embed
Methods in org.jruby.embed that return Node -
Uses of Node in org.jruby.embed.internal
Fields in org.jruby.embed.internal declared as NodeMethods in org.jruby.embed.internal that return NodeModifier and TypeMethodDescriptionEmbedEvalUnitImpl.getNode()Returns a root node of parsed Ruby script.Constructors in org.jruby.embed.internal with parameters of type NodeModifierConstructorDescription(package private)EmbedEvalUnitImpl(ScriptingContainer container, Node node, DynamicScope scope, Script script, boolean wrapExceptions) -
Uses of Node in org.jruby.ext.jruby
Methods in org.jruby.ext.jruby that return NodeModifier and TypeMethodDescriptionprivate static NodeJRubyLibrary.parseImpl(ThreadContext context, IRubyObject[] args, Block block) -
Uses of Node in org.jruby.ir
Methods in org.jruby.ir that return NodeModifier and TypeMethodDescriptionstatic Nodeprivate NodeIRManager.parse(ThreadContext context, FileResource file, String fileName) Methods in org.jruby.ir with parameters of type NodeModifier and TypeMethodDescriptionvoidIRBuilder.buildArgsMasgn(Node node, Operand argsArray, boolean isMasgnRoot, int preArgsCount, int postArgsCount, int index, boolean isSplat) voidIRBuilder.buildAssignment(Node node, Variable rhsVal) IRBuilder.buildAttrAssignAssignment(Node node, Operand value) protected OperandIRBuilder.buildAttrAssignCallArgs(List<Operand> argsList, Node args, boolean containsAssignment) voidIRBuilder.buildBlockArgsAssignment(Node node, Operand argsArray, int argIndex, boolean isSplat) protected Operand[]IRBuilder.buildCallArgs(Node args) protected Operand[]IRBuilder.buildCallArgsExcept(Node args, Node excludeKeywordArg) build each argument to a call but if we detect what appears to be a literal simple keyword argument signature we will pass that along to be excluded in the build here (we will build it separately).private OperandIRBuilder.buildColon2ForConstAsgnDeclNode(Node lhs, Variable valueResult, boolean constMissing) private OperandIRBuilder.buildConditionalLoop(Node conditionNode, Node bodyNode, boolean isWhile, boolean isLoopHeadCondition) IRBuilder.buildEnsureInternal(Node ensureBodyNode, Node ensureNode) IRBuilder.buildGetArgumentDefinition(Node node, String type) IRBuilder.buildGetDefinition(Node node) private InterpreterContextIRBuilder.buildModuleOrClassBody(Node bodyNode, int startLine, int endLine) private OperandIRBuilder.buildOperand(Variable result, Node node) IRBuilder.buildPreExeInner(Node body) private InterpreterContextIRBuilder.buildPrePostExeInner(Node body) IRBuilder.buildUndef(Node node) voidIRBuilder.buildVersionSpecificBlockArgsAssignment(Node node) private voidIRBuilder.buildWhenSplatValues(Variable eqqResult, Node node, Operand testValue, Label bodyLabel, Set<IRubyObject> seenLiterals) private voidIRBuilder.buildWhenValue(Variable eqqResult, Operand testValue, Label bodyLabel, Node node, Set<IRubyObject> seenLiterals, boolean needsSplat) protected OperandIRBuilder.buildWithOrder(Node node, boolean preserveOrder) private CallInstrIRBuilder.determineIfProcNew(Node receiverNode, CallInstr callInstr) private voidIRBuilder.determineIfWeNeedLineNumber(Node node) private intIRBuilder.dynamicPiece(Operand[] pieces, int i, Node pieceNode) private HashNodeIRBuilder.getPossibleKeywordArgument(Node argsNode) private IRubyObjectIRBuilder.getWhenLiteral(Node node) private booleanIRBuilder.literalWhenCheck(Node value, Set<IRubyObject> seenLiterals) private NotCompilableExceptionIRBuilder.notCompilable(String message, Node node) voidIRBuilder.receiveRequiredArg(Node node, int argIndex, Signature signature) Operand[]IRBuilder.setupCallArgs(Node args) private OperandIRBuilder.setupCallClosure(Node node) private voidIRBuilder.throwSyntaxError(Node node, String message) -
Uses of Node in org.jruby.ir.listeners
Methods in org.jruby.ir.listeners with parameters of type NodeModifier and TypeMethodDescriptionvoidIRScopeListener.endBuildOperand(Node node, IRScope scope, Operand operand) voidIRScopeListener.startBuildOperand(Node node, IRScope scope) -
Uses of Node in org.jruby.javasupport
Fields in org.jruby.javasupport declared as NodeConstructors in org.jruby.javasupport with parameters of type Node -
Uses of Node in org.jruby.lexer.yacc
Methods in org.jruby.lexer.yacc with parameters of type Node -
Uses of Node in org.jruby.parser
Fields in org.jruby.parser declared as NodeFields in org.jruby.parser with type parameters of type NodeMethods in org.jruby.parser that return NodeModifier and TypeMethodDescriptionParserSupport.addRootNode(Node topOfAST) ParserSupport.appendToBlock(Node head, Node tail) private static NodeParserSupport.arg_append(Node node1, Node node2) static NodeParserSupport.arg_blk_pass(Node firstNode, BlockPassNode secondNode) static NodeParserSupport.arg_concat(Node node1, Node node2) Define an array set condition so we can return lhsDefine an attribute set condition so we can return lhsprivate NodeParserSupport.checkForNilNode(Node node, int defaultPosition) private NodeStaticScope.declare(int line, RubySymbol symbolID) Make a DVar or LocalVar node based on scoping logicStaticScope.declare(int line, RubySymbol symbolID, int depth) ParserSupport.declareIdentifier(ByteList byteName) RubyParserResult.getAST()private NodeParserSupport.getFlipConditionNode(Node node) ParserSupport.getMatchNode(Node firstNode, Node secondNode) ParserSupport.getOperatorCallNode(Node firstNode, ByteList operator) ParserSupport.getOperatorCallNode(Node firstNode, ByteList operator, Node secondNode) ParserSupport.getOperatorCallNode(Node firstNode, ByteList operator, Node secondNode, int defaultPosition) private NodeParserSupport.getOperatorCallNodeInner(Node firstNode, ByteList operator, Node secondNode) We know for callers of this that it cannot be any of the specials checked in gettable.ParserSupport.literal_concat(Node head, Node tail) protected NodeParserSupport.makeNullNil(Node node) ParserSupport.method_cond(Node node) ParserSupport.new_args(int line, ListNode pre, ListNode optional, RestArgNode rest, ListNode post, ArgsTailHolder tail) ParserSupport.new_ary_op_assign(Node receiverNode, ByteList operatorName, Node argsNode, Node valueNode) ParserSupport.new_attr_op_assign(Node receiverNode, ByteList callType, Node valueNode, ByteList variableName, ByteList operatorName) ParserSupport.new_attrassign(int line, Node receiver, ByteList name, Node argsNode, boolean isLazy) ParserSupport.new_bodystmt(Node head, RescueBodyNode rescue, Node rescueElse, Node ensure) ParserSupport.new_call(Node receiver, ByteList callType, ByteList name, Node argsNode, Node iter, int line) ParserSupport.new_const_op_assign(int line, Node lhs, ByteList operatorName, Node rhs) ParserSupport.new_op_assign(AssignableNode receiverNode, ByteList operatorName, Node valueNode) static NodeParserSupport.newEvStrNode(int line, Node node) ParserSupport.newline_node(Node node, int line) Wraps node with NEWLINE node.ParserSupport.newRegexpNode(int line, Node contents, RegexpNode end) ParserSupport.newRescueModNode(Node body, Node rescueBody) static Nodestatic NodeParserSupport.node_assign(Node lhs, Node rhs) Parser.parse(String file, byte[] content, DynamicScope blockScope, ParserConfiguration configuration) Parser.parse(String file, InputStream content, DynamicScope blockScope, ParserConfiguration configuration) Parser.parse(String file, LexerSource lexerSource, DynamicScope blockScope, ParserConfiguration configuration) Parser.parse(String file, ByteList content, DynamicScope blockScope, ParserConfiguration configuration) ParserSupport.remove_duplicate_keys(HashNode hash) ParserSupport.splat_array(Node node) If node is a splat and it is splatting a literal array then return the literal array.ParserSupport.void_stmts(Node node) Check all nodes but the last one in a BlockNode for useless (void context) statements.Methods in org.jruby.parser that return types with arguments of type NodeModifier and TypeMethodDescriptionParserSupport.createKeyValue(Node key, Node value) ParserSupport.createKeyValue(Node key, Node value) RubyParserResult.getBeginNodes()Methods in org.jruby.parser with parameters of type NodeModifier and TypeMethodDescriptionStaticScope.addAssign(int line, RubySymbol symbolID, Node value) ParserSupport.addRootNode(Node topOfAST) ParserSupport.appendToBlock(Node head, Node tail) private static NodeParserSupport.arg_append(Node node1, Node node2) static NodeParserSupport.arg_blk_pass(Node firstNode, BlockPassNode secondNode) static NodeParserSupport.arg_concat(Node node1, Node node2) Define an array set condition so we can return lhsStaticScope.assign(int line, RubySymbol name, Node value) Make a DASgn or LocalAsgn node based on scope logic Note: This is private code made public only for parser.StaticScope.assign(int line, RubySymbol symbolID, Node value, StaticScope topScope, int depth) ParserSupport.assignableInCurr(ByteList nameBytes, Node value) ParserSupport.assignableKeyword(ByteList name, Node value) ParserSupport.assignableLabelOrIdentifier(ByteList byteName, Node value) StaticScope.assignKeyword(int line, RubySymbol symbolID, Node value) Register a keyword argument with this staticScope.Define an attribute set condition so we can return lhsvoidParserSupport.backrefAssignError(Node node) private booleanParserSupport.checkAssignmentInCondition(Node node) assign_in_condprivate NodeParserSupport.checkForNilNode(Node node, int defaultPosition) private NodeParserSupport.createKeyValue(Node key, Node value) voidvoidParserSupport.frobnicate_fcall_args(FCallNode fcall, Node args, Node iter) private NodeParserSupport.getFlipConditionNode(Node node) ParserSupport.getMatchNode(Node firstNode, Node secondNode) ParserSupport.getOperatorCallNode(Node firstNode, ByteList operator) ParserSupport.getOperatorCallNode(Node firstNode, ByteList operator, Node secondNode) ParserSupport.getOperatorCallNode(Node firstNode, ByteList operator, Node secondNode, int defaultPosition) private NodeParserSupport.getOperatorCallNodeInner(Node firstNode, ByteList operator, Node secondNode) intParserSupport.getPosition(Node start) We know for callers of this that it cannot be any of the specials checked in gettable.private voidParserSupport.handleUselessWarn(Node node, String useless) private static booleanParserSupport.isBreakStatement(Node node) private static booleanParserSupport.isStaticContent(Node node) ParserSupport.list_append(Node list, Node item) ParserSupport.list_concat(Node first, Node second) ParserSupport.literal_concat(Node head, Node tail) protected NodeParserSupport.makeNullNil(Node node) ParserSupport.method_cond(Node node) ParserSupport.new_ary_op_assign(Node receiverNode, ByteList operatorName, Node argsNode, Node valueNode) ParserSupport.new_attr_op_assign(Node receiverNode, ByteList callType, Node valueNode, ByteList variableName, ByteList operatorName) ParserSupport.new_attrassign(int line, Node receiver, ByteList name, Node argsNode, boolean isLazy) ParserSupport.new_bodystmt(Node head, RescueBodyNode rescue, Node rescueElse, Node ensure) ParserSupport.new_call(Node receiver, ByteList callType, ByteList name, Node argsNode, Node iter, int line) ParserSupport.new_colon2(int line, Node leftNode, ByteList name) ParserSupport.new_const_op_assign(int line, Node lhs, ByteList operatorName, Node rhs) ParserSupport.new_op_assign(AssignableNode receiverNode, ByteList operatorName, Node valueNode) static NodeParserSupport.newAndNode(Node left, Node right) ParserSupport.newArrayNode(int line, Node node) static CaseNodeParserSupport.newCaseNode(int line, Node expression, Node firstWhenNode) Ok I admit that this is somewhat ugly.ParserSupport.newEvStrNode(int line, Node node) ParserSupport.newline_node(Node node, int line) Wraps node with NEWLINE node.ParserSupport.newRegexpNode(int line, Node contents, RegexpNode end) ParserSupport.newRescueModNode(Node body, Node rescueBody) ParserSupport.newSplatNode(Node node) ParserSupport.newSValueNode(int line, Node node) static NodeParserSupport.newWhenNode(int line, Node expressionNodes, Node bodyNode, Node nextCase) static NodeParserSupport.node_assign(Node lhs, Node rhs) intvoidSets the ast.ParserSupport.splat_array(Node node) If node is a splat and it is splatting a literal array then return the literal array.booleanParserSupport.value_expr(RubyLexer lexer, Node node) voidCheck to see if current node is an useless statement.ParserSupport.void_stmts(Node node) Check all nodes but the last one in a BlockNode for useless (void context) statements.voidParserSupport.warnUnlessEOption(IRubyWarnings.ID id, Node node, String message) -
Uses of Node in org.jruby.runtime
Methods in org.jruby.runtime with parameters of type NodeModifier and TypeMethodDescriptionstatic BlockHelpers.getBlock(Ruby runtime, ThreadContext context, IRubyObject self, Node node, Block aBlock) static BlockHelpers.getBlock(ThreadContext context, IRubyObject self, Node node) static booleanHelpers.isRequiredKeywordArgumentValueNode(Node asgnNode) private static Signature.RestSignature.restFromArg(Node restArg)