final class jdk.nashorn.api.tree.LiteralTreeImpl extends jdk.nashorn.api.tree.ExpressionTreeImpl implements jdk.nashorn.api.tree.LiteralTree
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.api.tree.LiteralTreeImpl
super_class: jdk.nashorn.api.tree.ExpressionTreeImpl
{
private final java.lang.Object value;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.nashorn.api.tree.Tree$Kind kind;
descriptor: Ljdk/nashorn/api/tree/Tree$Kind;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(jdk.nashorn.internal.ir.LiteralNode<?>);
descriptor: (Ljdk/nashorn/internal/ir/LiteralNode;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.nashorn.api.tree.ExpressionTreeImpl.<init>:(Ljdk/nashorn/internal/ir/Expression;)V
1: aload 0
aload 1
invokestatic jdk.nashorn.api.tree.LiteralTreeImpl.literalKind:(Ljdk/nashorn/internal/ir/LiteralNode;)Ljdk/nashorn/api/tree/Tree$Kind;
putfield jdk.nashorn.api.tree.LiteralTreeImpl.kind:Ljdk/nashorn/api/tree/Tree$Kind;
2: aload 0
aload 1
invokevirtual jdk.nashorn.internal.ir.LiteralNode.getValue:()Ljava/lang/Object;
putfield jdk.nashorn.api.tree.LiteralTreeImpl.value:Ljava/lang/Object;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/tree/LiteralTreeImpl;
0 4 1 node Ljdk/nashorn/internal/ir/LiteralNode<*>;
Signature: (Ljdk/nashorn/internal/ir/LiteralNode<*>;)V
MethodParameters:
Name Flags
node final
public jdk.nashorn.api.tree.Tree$Kind getKind();
descriptor: ()Ljdk/nashorn/api/tree/Tree$Kind;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.tree.LiteralTreeImpl.kind:Ljdk/nashorn/api/tree/Tree$Kind;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/tree/LiteralTreeImpl;
public java.lang.Object getValue();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.tree.LiteralTreeImpl.value:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/tree/LiteralTreeImpl;
private static jdk.nashorn.api.tree.Tree$Kind literalKind(jdk.nashorn.internal.ir.LiteralNode<?>);
descriptor: (Ljdk/nashorn/internal/ir/LiteralNode;)Ljdk/nashorn/api/tree/Tree$Kind;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.ir.LiteralNode.isBoolean:()Z
ifeq 2
1: getstatic jdk.nashorn.api.tree.Tree$Kind.BOOLEAN_LITERAL:Ljdk/nashorn/api/tree/Tree$Kind;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.ir.LiteralNode.isNumeric:()Z
ifeq 4
3: getstatic jdk.nashorn.api.tree.Tree$Kind.NUMBER_LITERAL:Ljdk/nashorn/api/tree/Tree$Kind;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.ir.LiteralNode.isString:()Z
ifeq 6
5: getstatic jdk.nashorn.api.tree.Tree$Kind.STRING_LITERAL:Ljdk/nashorn/api/tree/Tree$Kind;
areturn
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.ir.LiteralNode.isNull:()Z
ifeq 8
7: getstatic jdk.nashorn.api.tree.Tree$Kind.NULL_LITERAL:Ljdk/nashorn/api/tree/Tree$Kind;
areturn
8: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "should not reach here: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.nashorn.internal.ir.LiteralNode.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 node Ljdk/nashorn/internal/ir/LiteralNode<*>;
Signature: (Ljdk/nashorn/internal/ir/LiteralNode<*>;)Ljdk/nashorn/api/tree/Tree$Kind;
MethodParameters:
Name Flags
node final
public <R, D> R accept(jdk.nashorn.api.tree.TreeVisitor<R, D>, );
descriptor: (Ljdk/nashorn/api/tree/TreeVisitor;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
aload 2
invokeinterface jdk.nashorn.api.tree.TreeVisitor.visitLiteral:(Ljdk/nashorn/api/tree/LiteralTree;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/tree/LiteralTreeImpl;
0 1 1 visitor Ljdk/nashorn/api/tree/TreeVisitor<TR;TD;>;
0 1 2 data TD;
Signature: <R:Ljava/lang/Object;D:Ljava/lang/Object;>(Ljdk/nashorn/api/tree/TreeVisitor<TR;TD;>;TD;)TR;
MethodParameters:
Name Flags
visitor final
data final
}
SourceFile: "LiteralTreeImpl.java"
InnerClasses:
public final Kind = jdk.nashorn.api.tree.Tree$Kind of jdk.nashorn.api.tree.Tree