public class org.eclipse.jdt.internal.launching.JavaMigrationDelegate implements org.eclipse.debug.core.ILaunchConfigurationMigrationDelegate
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jdt.internal.launching.JavaMigrationDelegate
super_class: java.lang.Object
{
protected static final java.lang.String EMPTY_STRING;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: ""
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jdt/internal/launching/JavaMigrationDelegate;
public boolean isCandidate(org.eclipse.debug.core.ILaunchConfiguration);
descriptor: (Lorg/eclipse/debug/core/ILaunchConfiguration;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME:Ljava/lang/String;
ldc ""
invokeinterface org.eclipse.debug.core.ILaunchConfiguration.getAttribute:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_0
ireturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 2
invokevirtual org.eclipse.jdt.internal.launching.JavaMigrationDelegate.isAvailable:(Ljava/lang/String;)Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.eclipse.debug.core.ILaunchConfiguration.getMappedResources:()[Lorg/eclipse/core/resources/IResource;
astore 3
start local 3 6: aload 1
invokestatic org.eclipse.jdt.internal.launching.JavaMigrationDelegate.getResource:(Lorg/eclipse/debug/core/ILaunchConfiguration;)Lorg/eclipse/core/resources/IResource;
astore 4
start local 4 7: aload 4
ifnonnull 10
8: aload 3
ifnull 9
iconst_1
ireturn
StackMap locals: org.eclipse.core.resources.IResource[] org.eclipse.core.resources.IResource
StackMap stack:
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 3
ifnonnull 12
11: iconst_1
ireturn
12: StackMap locals:
StackMap stack:
aload 3
arraylength
iconst_1
if_icmpeq 14
13: iconst_1
ireturn
14: StackMap locals:
StackMap stack:
aload 4
aload 3
iconst_0
aaload
invokeinterface org.eclipse.core.resources.IResource.equals:(Ljava/lang/Object;)Z
ifeq 15
iconst_0
goto 16
StackMap locals:
StackMap stack:
15: iconst_1
StackMap locals:
StackMap stack: int
16: ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/eclipse/jdt/internal/launching/JavaMigrationDelegate;
0 17 1 candidate Lorg/eclipse/debug/core/ILaunchConfiguration;
1 17 2 pName Ljava/lang/String;
6 17 3 mapped [Lorg/eclipse/core/resources/IResource;
7 17 4 target Lorg/eclipse/core/resources/IResource;
Exceptions:
throws org.eclipse.core.runtime.CoreException
MethodParameters:
Name Flags
candidate
private boolean isAvailable(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: invokestatic org.eclipse.core.resources.ResourcesPlugin.getWorkspace:()Lorg/eclipse/core/resources/IWorkspace;
invokeinterface org.eclipse.core.resources.IWorkspace.getRoot:()Lorg/eclipse/core/resources/IWorkspaceRoot;
aload 1
invokeinterface org.eclipse.core.resources.IWorkspaceRoot.getProject:(Ljava/lang/String;)Lorg/eclipse/core/resources/IProject;
astore 2
start local 2 1: aload 2
invokeinterface org.eclipse.core.resources.IProject.exists:()Z
ifeq 2
aload 2
invokeinterface org.eclipse.core.resources.IProject.isOpen:()Z
ifeq 2
iconst_1
ireturn
StackMap locals: org.eclipse.core.resources.IProject
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jdt/internal/launching/JavaMigrationDelegate;
0 3 1 projectName Ljava/lang/String;
1 3 2 project Lorg/eclipse/core/resources/IProject;
MethodParameters:
Name Flags
projectName
static org.eclipse.core.resources.IResource getResource(org.eclipse.debug.core.ILaunchConfiguration);
descriptor: (Lorg/eclipse/debug/core/ILaunchConfiguration;)Lorg/eclipse/core/resources/IResource;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getstatic org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME:Ljava/lang/String;
ldc ""
invokeinterface org.eclipse.debug.core.ILaunchConfiguration.getAttribute:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: getstatic org.eclipse.core.runtime.Path.ROOT:Lorg/eclipse/core/runtime/Path;
aload 2
invokevirtual org.eclipse.core.runtime.Path.isValidSegment:(Ljava/lang/String;)Z
ifeq 22
3: invokestatic org.eclipse.core.resources.ResourcesPlugin.getWorkspace:()Lorg/eclipse/core/resources/IWorkspace;
invokeinterface org.eclipse.core.resources.IWorkspace.getRoot:()Lorg/eclipse/core/resources/IWorkspaceRoot;
aload 2
invokeinterface org.eclipse.core.resources.IWorkspaceRoot.getProject:(Ljava/lang/String;)Lorg/eclipse/core/resources/IProject;
astore 3
start local 3 4: aload 0
getstatic org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME:Ljava/lang/String;
ldc ""
invokeinterface org.eclipse.debug.core.ILaunchConfiguration.getAttribute:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 5: ldc ""
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 19
6: aload 3
ifnull 20
aload 3
invokeinterface org.eclipse.core.resources.IProject.isAccessible:()Z
ifeq 20
7: aload 3
invokestatic org.eclipse.jdt.core.JavaCore.create:(Lorg/eclipse/core/resources/IProject;)Lorg/eclipse/jdt/core/IJavaProject;
astore 5
start local 5 8: aload 5
ifnull 20
aload 5
invokeinterface org.eclipse.jdt.core.IJavaProject.exists:()Z
ifeq 20
9: aload 4
bipush 36
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 4
10: aload 5
aload 4
invokeinterface org.eclipse.jdt.core.IJavaProject.findType:(Ljava/lang/String;)Lorg/eclipse/jdt/core/IType;
astore 6
start local 6 11: aload 6
ifnull 20
12: aload 6
invokeinterface org.eclipse.jdt.core.IType.getUnderlyingResource:()Lorg/eclipse/core/resources/IResource;
astore 1
13: aload 1
ifnonnull 20
14: aload 6
ldc Lorg/eclipse/core/resources/IResource;
invokeinterface org.eclipse.jdt.core.IType.getAdapter:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.eclipse.core.resources.IResource
astore 1
15: goto 20
16: StackMap locals: org.eclipse.debug.core.ILaunchConfiguration org.eclipse.core.resources.IResource java.lang.String org.eclipse.core.resources.IProject java.lang.String org.eclipse.jdt.core.IJavaProject org.eclipse.jdt.core.IType
StackMap stack: org.eclipse.jdt.core.JavaModelException
astore 7
start local 7 17: aload 7
invokestatic org.eclipse.jdt.internal.launching.LaunchingPlugin.log:(Ljava/lang/Throwable;)V
18: aconst_null
areturn
end local 7 end local 6 end local 5 19: StackMap locals:
StackMap stack:
aload 3
areturn
20: StackMap locals:
StackMap stack:
aload 1
ifnonnull 22
21: aload 3
astore 1
end local 4 end local 3 22: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 candidate Lorg/eclipse/debug/core/ILaunchConfiguration;
1 23 1 resource Lorg/eclipse/core/resources/IResource;
2 23 2 pname Ljava/lang/String;
4 22 3 project Lorg/eclipse/core/resources/IProject;
5 22 4 tname Ljava/lang/String;
8 19 5 jproject Lorg/eclipse/jdt/core/IJavaProject;
11 19 6 type Lorg/eclipse/jdt/core/IType;
17 19 7 jme Lorg/eclipse/jdt/core/JavaModelException;
Exception table:
from to target type
12 15 16 Class org.eclipse.jdt.core.JavaModelException
Exceptions:
throws org.eclipse.core.runtime.CoreException
MethodParameters:
Name Flags
candidate
public void migrate(org.eclipse.debug.core.ILaunchConfiguration);
descriptor: (Lorg/eclipse/debug/core/ILaunchConfiguration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.eclipse.debug.core.ILaunchConfiguration.getWorkingCopy:()Lorg/eclipse/debug/core/ILaunchConfigurationWorkingCopy;
astore 2
start local 2 1: aload 2
invokestatic org.eclipse.jdt.internal.launching.JavaMigrationDelegate.updateResourceMapping:(Lorg/eclipse/debug/core/ILaunchConfigurationWorkingCopy;)V
2: aload 2
invokeinterface org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.doSave:()Lorg/eclipse/debug/core/ILaunchConfiguration;
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jdt/internal/launching/JavaMigrationDelegate;
0 4 1 candidate Lorg/eclipse/debug/core/ILaunchConfiguration;
1 4 2 wc Lorg/eclipse/debug/core/ILaunchConfigurationWorkingCopy;
Exceptions:
throws org.eclipse.core.runtime.CoreException
MethodParameters:
Name Flags
candidate
public static void updateResourceMapping(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy);
descriptor: (Lorg/eclipse/debug/core/ILaunchConfigurationWorkingCopy;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.eclipse.jdt.internal.launching.JavaMigrationDelegate.getResource:(Lorg/eclipse/debug/core/ILaunchConfiguration;)Lorg/eclipse/core/resources/IResource;
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aload 1
ifnull 4
3: iconst_1
anewarray org.eclipse.core.resources.IResource
dup
iconst_0
aload 1
aastore
astore 2
4: StackMap locals: org.eclipse.core.resources.IResource org.eclipse.core.resources.IResource[]
StackMap stack:
aload 0
aload 2
invokeinterface org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.setMappedResources:([Lorg/eclipse/core/resources/IResource;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 wc Lorg/eclipse/debug/core/ILaunchConfigurationWorkingCopy;
1 6 1 resource Lorg/eclipse/core/resources/IResource;
2 6 2 resources [Lorg/eclipse/core/resources/IResource;
Exceptions:
throws org.eclipse.core.runtime.CoreException
MethodParameters:
Name Flags
wc
}
SourceFile: "JavaMigrationDelegate.java"