public class org.aspectj.weaver.tools.cache.SimpleCacheFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.aspectj.weaver.tools.cache.SimpleCacheFactory
super_class: java.lang.Object
{
public static final java.lang.String CACHE_ENABLED_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "aj.weaving.cache.enabled"
public static final java.lang.String CACHE_DIR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "aj.weaving.cache.dir"
public static final java.lang.String CACHE_IMPL;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "aj.weaving.cache.impl"
public static final java.lang.String PATH_DEFAULT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "/tmp/"
public static final boolean BYDEFAULT;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static java.lang.Boolean enabled;
descriptor: Ljava/lang/Boolean;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private static boolean determinedIfEnabled;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static org.aspectj.weaver.tools.cache.SimpleCache lacache;
descriptor: Lorg/aspectj/weaver/tools/cache/SimpleCache;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "/tmp/"
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.path:Ljava/lang/String;
1: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
2: iconst_0
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.determinedIfEnabled:Z
3: aconst_null
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.lacache:Lorg/aspectj/weaver/tools/cache/SimpleCache;
return
LocalVariableTable:
Start End Slot Name Signature
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/aspectj/weaver/tools/cache/SimpleCacheFactory;
public static synchronized org.aspectj.weaver.tools.cache.SimpleCache createSimpleCache();
descriptor: ()Lorg/aspectj/weaver/tools/cache/SimpleCache;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=0
0: getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.lacache:Lorg/aspectj/weaver/tools/cache/SimpleCache;
ifnonnull 17
1: getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.determinedIfEnabled:Z
ifne 3
2: invokestatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.determineIfEnabled:()V
3: StackMap locals:
StackMap stack:
getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 5
4: aconst_null
areturn
5: StackMap locals:
StackMap stack:
ldc "aj.weaving.cache.dir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.path:Ljava/lang/String;
6: getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.path:Ljava/lang/String;
ifnonnull 13
7: ldc "/tmp/"
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.path:Ljava/lang/String;
8: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 0
start local 0 10: ldc "/tmp/"
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.path:Ljava/lang/String;
11: aload 0
invokevirtual java.lang.Throwable.printStackTrace:()V
12: aload 0
invokestatic org.aspectj.weaver.Dump.dumpWithException:(Ljava/lang/Throwable;)Ljava/lang/String;
pop
end local 0 13: StackMap locals:
StackMap stack:
new java.io.File
dup
getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.path:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 0
start local 0 14: aload 0
invokevirtual java.io.File.exists:()Z
ifne 16
15: aload 0
invokevirtual java.io.File.mkdir:()Z
pop
16: StackMap locals: java.io.File
StackMap stack:
new org.aspectj.weaver.tools.cache.SimpleCache
dup
getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.path:Ljava/lang/String;
getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
invokespecial org.aspectj.weaver.tools.cache.SimpleCache.<init>:(Ljava/lang/String;Z)V
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.lacache:Lorg/aspectj/weaver/tools/cache/SimpleCache;
end local 0 17: StackMap locals:
StackMap stack:
getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.lacache:Lorg/aspectj/weaver/tools/cache/SimpleCache;
areturn
LocalVariableTable:
Start End Slot Name Signature
10 13 0 t Ljava/lang/Throwable;
14 17 0 f Ljava/io/File;
Exception table:
from to target type
5 8 9 Class java.lang.Throwable
private static void determineIfEnabled();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: ldc "aj.weaving.cache.enabled"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ifnonnull 4
2: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
3: goto 18
4: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc "true"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 11
5: ldc "aj.weaving.cache.impl"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 6: ldc "shared"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
8: goto 18
9: StackMap locals: java.lang.String
StackMap stack:
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
end local 1 10: goto 18
11: StackMap locals:
StackMap stack:
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
end local 0 12: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 0
start local 0 14: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
15: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Error creating cache"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: aload 0
invokevirtual java.lang.Throwable.printStackTrace:()V
17: aload 0
invokestatic org.aspectj.weaver.Dump.dumpWithException:(Ljava/lang/Throwable;)Ljava/lang/String;
pop
end local 0 18: StackMap locals:
StackMap stack:
iconst_1
putstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.determinedIfEnabled:Z
19: return
LocalVariableTable:
Start End Slot Name Signature
1 12 0 property Ljava/lang/String;
6 10 1 impl Ljava/lang/String;
14 18 0 t Ljava/lang/Throwable;
Exception table:
from to target type
0 12 13 Class java.lang.Throwable
public static boolean isEnabled();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.determinedIfEnabled:Z
ifne 2
1: invokestatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.determineIfEnabled:()V
2: StackMap locals:
StackMap stack:
getstatic org.aspectj.weaver.tools.cache.SimpleCacheFactory.enabled:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "SimpleCacheFactory.java"