public abstract class org.jruby.ast.Node implements org.jruby.lexer.yacc.ISourcePositionHolder, org.jruby.lexer.yacc.ISourcePosition
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.ast.Node
super_class: java.lang.Object
{
static final java.util.List<org.jruby.ast.Node> EMPTY_LIST;
descriptor: Ljava/util/List;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/jruby/ast/Node;>;
private int line;
descriptor: I
flags: (0x0002) ACC_PRIVATE
protected boolean containsVariableAssignment;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected boolean newline;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic org.jruby.ast.Node.EMPTY_LIST:Ljava/util/List;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.lexer.yacc.ISourcePosition, boolean);
descriptor: (Lorg/jruby/lexer/yacc/ISourcePosition;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokeinterface org.jruby.lexer.yacc.ISourcePosition.getLine:()I
putfield org.jruby.ast.Node.line:I
2: aload 0
iload 2
putfield org.jruby.ast.Node.containsVariableAssignment:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ast/Node;
0 4 1 position Lorg/jruby/lexer/yacc/ISourcePosition;
0 4 2 containsAssignment Z
MethodParameters:
Name Flags
position
containsAssignment
public void setNewline();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.jruby.ast.Node.newline:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ast/Node;
public boolean isNewline();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ast.Node.newline:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public org.jruby.lexer.yacc.ISourcePosition getPosition();
descriptor: ()Lorg/jruby/lexer/yacc/ISourcePosition;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public int getLine();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ast.Node.line:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public java.lang.String getFile();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public void setPosition(org.jruby.lexer.yacc.ISourcePosition);
descriptor: (Lorg/jruby/lexer/yacc/ISourcePosition;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.jruby.lexer.yacc.ISourcePosition.getLine:()I
putfield org.jruby.ast.Node.line:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ast/Node;
0 2 1 position Lorg/jruby/lexer/yacc/ISourcePosition;
MethodParameters:
Name Flags
position
public abstract <T> T accept(org.jruby.ast.visitor.NodeVisitor<T>);
descriptor: (Lorg/jruby/ast/visitor/NodeVisitor;)Ljava/lang/Object;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: <T:Ljava/lang/Object;>(Lorg/jruby/ast/visitor/NodeVisitor<TT;>;)TT;
MethodParameters:
Name Flags
visitor
public abstract java.util.List<org.jruby.ast.Node> childNodes();
descriptor: ()Ljava/util/List;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: ()Ljava/util/List<Lorg/jruby/ast/Node;>;
protected static java.util.List<org.jruby.ast.Node> createList(org.jruby.ast.Node);
descriptor: (Lorg/jruby/ast/Node;)Ljava/util/List;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 node Lorg/jruby/ast/Node;
Signature: (Lorg/jruby/ast/Node;)Ljava/util/List<Lorg/jruby/ast/Node;>;
MethodParameters:
Name Flags
node
protected static java.util.List<org.jruby.ast.Node> createList(org.jruby.ast.Node, org.jruby.ast.Node);
descriptor: (Lorg/jruby/ast/Node;Lorg/jruby/ast/Node;)Ljava/util/List;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 2
aload 0
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
2: aload 2
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 node1 Lorg/jruby/ast/Node;
0 4 1 node2 Lorg/jruby/ast/Node;
1 4 2 list Ljava/util/ArrayList<Lorg/jruby/ast/Node;>;
Signature: (Lorg/jruby/ast/Node;Lorg/jruby/ast/Node;)Ljava/util/List<Lorg/jruby/ast/Node;>;
MethodParameters:
Name Flags
node1
node2
protected static java.util.List<org.jruby.ast.Node> createList(org.jruby.ast.Node, org.jruby.ast.Node, org.jruby.ast.Node);
descriptor: (Lorg/jruby/ast/Node;Lorg/jruby/ast/Node;Lorg/jruby/ast/Node;)Ljava/util/List;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
iconst_3
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 1: aload 3
aload 0
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
2: aload 3
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
3: aload 3
aload 2
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 node1 Lorg/jruby/ast/Node;
0 5 1 node2 Lorg/jruby/ast/Node;
0 5 2 node3 Lorg/jruby/ast/Node;
1 5 3 list Ljava/util/ArrayList<Lorg/jruby/ast/Node;>;
Signature: (Lorg/jruby/ast/Node;Lorg/jruby/ast/Node;Lorg/jruby/ast/Node;)Ljava/util/List<Lorg/jruby/ast/Node;>;
MethodParameters:
Name Flags
node1
node2
node3
protected static java.util.List<org.jruby.ast.Node> createList(org.jruby.ast.Node[]);
descriptor: ([Lorg/jruby/ast/Node;)Ljava/util/List;
flags: (0x008c) ACC_PROTECTED, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=6, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: org.jruby.ast.Node[] java.util.ArrayList top int int org.jruby.ast.Node[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
ifnull 4
aload 1
aload 2
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 nodes [Lorg/jruby/ast/Node;
1 7 1 list Ljava/util/ArrayList<Lorg/jruby/ast/Node;>;
3 4 2 node Lorg/jruby/ast/Node;
Signature: ([Lorg/jruby/ast/Node;)Ljava/util/List<Lorg/jruby/ast/Node;>;
MethodParameters:
Name Flags
nodes
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
iconst_0
invokevirtual org.jruby.ast.Node.toString:(ZI)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public java.lang.String toString(boolean, int);
descriptor: (ZI)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
instanceof org.jruby.ast.InvisibleNode
ifeq 1
ldc ""
areturn
1: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
bipush 60
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 3
start local 3 2: iload 1
ifeq 3
iload 2
aload 3
invokestatic org.jruby.ast.Node.indent:(ILjava/lang/StringBuilder;)V
3: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 3
ldc "("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.jruby.ast.Node.getNodeName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 0
invokevirtual org.jruby.ast.Node.toStringInternal:()Ljava/lang/String;
astore 4
start local 4 5: aload 4
ifnull 6
aload 3
ldc "["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals: java.lang.String
StackMap stack:
aload 0
instanceof org.jruby.ast.types.INameNode
ifeq 7
aload 3
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
checkcast org.jruby.ast.types.INameNode
invokeinterface org.jruby.ast.types.INameNode.getName:()Lorg/jruby/RubySymbol;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
7: StackMap locals:
StackMap stack:
aload 3
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.jruby.ast.Node.getPosition:()Lorg/jruby/lexer/yacc/ISourcePosition;
invokeinterface org.jruby.lexer.yacc.ISourcePosition.getLine:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
8: aload 0
invokevirtual org.jruby.ast.Node.childNodes:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 9
iload 1
ifeq 9
aload 3
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ast.Node.childNodes:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 22
StackMap locals: org.jruby.ast.Node int int java.lang.StringBuilder java.lang.String top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jruby.ast.Node
astore 5
start local 5 11: iload 1
ifne 12
aload 3
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: StackMap locals: org.jruby.ast.Node int int java.lang.StringBuilder java.lang.String org.jruby.ast.Node java.util.Iterator
StackMap stack:
aload 5
ifnonnull 16
13: iload 1
ifeq 14
iload 2
iconst_1
iadd
aload 3
invokestatic org.jruby.ast.Node.indent:(ILjava/lang/StringBuilder;)V
14: StackMap locals:
StackMap stack:
aload 3
ldc "null"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: goto 21
16: StackMap locals:
StackMap stack:
iload 1
ifeq 20
aload 5
instanceof org.jruby.ast.NilImplicitNode
ifeq 20
17: iload 2
iconst_1
iadd
aload 3
invokestatic org.jruby.ast.Node.indent:(ILjava/lang/StringBuilder;)V
18: aload 3
aload 5
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
19: goto 21
20: StackMap locals:
StackMap stack:
aload 3
aload 5
iload 1
iload 2
iconst_1
iadd
invokevirtual org.jruby.ast.Node.toString:(ZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
21: StackMap locals:
StackMap stack:
iload 1
ifeq 22
aload 3
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 5 22: StackMap locals: org.jruby.ast.Node int int java.lang.StringBuilder java.lang.String top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
23: aload 0
invokevirtual org.jruby.ast.Node.childNodes:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 24
iload 1
ifeq 24
iload 2
aload 3
invokestatic org.jruby.ast.Node.indent:(ILjava/lang/StringBuilder;)V
24: StackMap locals: org.jruby.ast.Node int int java.lang.StringBuilder java.lang.String
StackMap stack:
aload 3
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
25: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/jruby/ast/Node;
0 26 1 indent Z
0 26 2 indentation I
2 26 3 builder Ljava/lang/StringBuilder;
5 26 4 moreState Ljava/lang/String;
11 22 5 child Lorg/jruby/ast/Node;
MethodParameters:
Name Flags
indent
indentation
protected java.lang.String toStringInternal();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
private static void indent(int, java.lang.StringBuilder);
descriptor: (ILjava/lang/StringBuilder;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 1
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
iload 0
if_icmplt 2
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 indentation I
0 6 1 builder Ljava/lang/StringBuilder;
1 5 2 n I
MethodParameters:
Name Flags
indentation
builder
protected java.lang.String getNodeName();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ast/Node;
1 2 1 name Ljava/lang/String;
public <T extends org.jruby.ast.Node> T findFirstChild(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Lorg/jruby/ast/Node;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.jruby.ast.Node$1
dup
aload 0
aload 1
invokespecial org.jruby.ast.Node$1.<init>:(Lorg/jruby/ast/Node;Ljava/lang/Class;)V
invokevirtual org.jruby.ast.Node.accept:(Lorg/jruby/ast/visitor/NodeVisitor;)Ljava/lang/Object;
checkcast org.jruby.ast.Node
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
0 1 1 nodeClass Ljava/lang/Class<TT;>;
Signature: <T:Lorg/jruby/ast/Node;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
nodeClass final
public abstract org.jruby.ast.NodeType getNodeType();
descriptor: ()Lorg/jruby/ast/NodeType;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public boolean isNil();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public boolean needsDefinitionCheck();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public boolean containsVariableAssignment();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ast.Node.containsVariableAssignment:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
public boolean executesOnce();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/Node;
}
SourceFile: "Node.java"
NestMembers:
org.jruby.ast.Node$1
InnerClasses:
org.jruby.ast.Node$1