public class io.vertx.ext.shell.command.base.FileSystemCd extends io.vertx.ext.shell.command.AnnotatedCommand
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.shell.command.base.FileSystemCd
super_class: io.vertx.ext.shell.command.AnnotatedCommand
{
private java.lang.String dir;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.vertx.ext.shell.command.AnnotatedCommand.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/shell/command/base/FileSystemCd;
public void setDir(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.vertx.ext.shell.command.base.FileSystemCd.dir:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/shell/command/base/FileSystemCd;
0 2 1 dir Ljava/lang/String;
RuntimeVisibleAnnotations:
io.vertx.core.cli.annotations.Argument(index = 0, argName = "dir", required = false)
io.vertx.core.cli.annotations.Description(value = "the new working dir")
MethodParameters:
Name Flags
dir
public void process(io.vertx.ext.shell.command.CommandProcess);
descriptor: (Lio/vertx/ext/shell/command/CommandProcess;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.vertx.ext.shell.command.CommandProcess.args:()Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 4
1: aload 1
invokeinterface io.vertx.ext.shell.command.CommandProcess.session:()Lio/vertx/ext/shell/session/Session;
ldc "cwd"
invokeinterface io.vertx.ext.shell.session.Session.get:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: new io.vertx.ext.shell.command.base.FsHelper
dup
invokespecial io.vertx.ext.shell.command.base.FsHelper.<init>:()V
aload 1
invokeinterface io.vertx.ext.shell.command.CommandProcess.vertx:()Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.fileSystem:()Lio/vertx/core/file/FileSystem;
aload 2
aload 0
getfield io.vertx.ext.shell.command.base.FileSystemCd.dir:Ljava/lang/String;
aload 1
invokedynamic handle(Lio/vertx/ext/shell/command/CommandProcess;)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/ext/shell/command/base/FileSystemCd.lambda$0(Lio/vertx/ext/shell/command/CommandProcess;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.ext.shell.command.base.FsHelper.cd:(Lio/vertx/core/file/FileSystem;Ljava/lang/String;Ljava/lang/String;Lio/vertx/core/Handler;)V
end local 2 3: goto 6
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.vertx.ext.shell.command.CommandProcess.session:()Lio/vertx/ext/shell/session/Session;
ldc "cwd"
invokeinterface io.vertx.ext.shell.session.Session.remove:(Ljava/lang/String;)Ljava/lang/Object;
pop
5: aload 1
invokeinterface io.vertx.ext.shell.command.CommandProcess.end:()V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/ext/shell/command/base/FileSystemCd;
0 7 1 process Lio/vertx/ext/shell/command/CommandProcess;
2 3 2 cwd Ljava/lang/String;
MethodParameters:
Name Flags
process
public void complete(io.vertx.ext.shell.cli.Completion);
descriptor: (Lio/vertx/ext/shell/cli/Completion;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new io.vertx.ext.shell.command.base.FsHelper
dup
invokespecial io.vertx.ext.shell.command.base.FsHelper.<init>:()V
invokevirtual io.vertx.ext.shell.command.base.FsHelper.completionHandler:()Lio/vertx/core/Handler;
aload 1
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/shell/command/base/FileSystemCd;
0 2 1 completion Lio/vertx/ext/shell/cli/Completion;
MethodParameters:
Name Flags
completion
private static void lambda$0(io.vertx.ext.shell.command.CommandProcess, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/ext/shell/command/CommandProcess;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 4
1: aload 0
invokeinterface io.vertx.ext.shell.command.CommandProcess.session:()Lio/vertx/ext/shell/session/Session;
ldc "cwd"
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
invokeinterface io.vertx.ext.shell.session.Session.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/ext/shell/session/Session;
pop
2: aload 0
invokeinterface io.vertx.ext.shell.command.CommandProcess.end:()V
3: goto 6
4: StackMap locals:
StackMap stack:
aload 0
ldc "cd: No such file or directory\n"
invokeinterface io.vertx.ext.shell.command.CommandProcess.write:(Ljava/lang/String;)Lio/vertx/ext/shell/command/CommandProcess;
pop
5: aload 0
invokeinterface io.vertx.ext.shell.command.CommandProcess.end:()V
6: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 7 1 ar Lio/vertx/core/AsyncResult<Ljava/lang/String;>;
}
SourceFile: "FileSystemCd.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
RuntimeVisibleAnnotations:
io.vertx.core.cli.annotations.Name(value = "cd")
io.vertx.core.cli.annotations.Summary(value = "Change the current working dir")