public class org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider extends java.lang.Object implements org.junit.platform.console.shadow.picocli.CommandLine$IDefaultValueProvider
{
private java.util.Properties properties;
private java.io.File location;
public void <init>()
{
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void <init>(java.util.Properties)
{
java.util.Properties v;
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
v := @parameter: java.util.Properties;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties> = v;
return;
}
public void <init>(java.io.File)
{
java.util.Properties v, v;
java.io.File v;
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
v := @parameter: java.io.File;
v = staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties createProperties(java.io.File,org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v, null);
specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: void <init>(java.util.Properties)>(v);
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
virtualinvoke v.<java.util.Properties: java.lang.Object remove(java.lang.Object)>("__picocli_internal_location");
v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.io.File location> = v;
return;
}
private static java.util.Properties createProperties(java.io.File, org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)
{
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.junit.platform.console.shadow.picocli.CommandLine$Tracer v;
java.lang.NullPointerException v;
java.lang.String v, v, v, v;
boolean v, v;
java.util.Properties v;
org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec v;
java.io.IOException v;
java.io.FileInputStream v, v;
java.io.File v;
v := @parameter: java.io.File;
v := @parameter: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec;
if v != null goto label;
v = new java.lang.NullPointerException;
specialinvoke v.<java.lang.NullPointerException: void <init>(java.lang.String)>("file is null");
throw v;
label:
v = new org.junit.platform.console.shadow.picocli.CommandLine$Tracer;
specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Tracer: void <init>()>();
v = new java.util.Properties;
specialinvoke v.<java.util.Properties: void <init>()>();
v = virtualinvoke v.<java.io.File: boolean exists()>();
if v == 0 goto label;
v = virtualinvoke v.<java.io.File: boolean canRead()>();
if v == 0 goto label;
v = null;
label:
if v != null goto label;
v = "unknown command";
goto label;
label:
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec: java.lang.String qualifiedName()>();
label:
v = newarray (java.lang.Object)[2];
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v[0] = v;
v[1] = v;
virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Tracer: void debug(java.lang.String,java.lang.Object[])>("Reading defaults from %s for %s%n", v);
v = new java.io.FileInputStream;
specialinvoke v.<java.io.FileInputStream: void <init>(java.io.File)>(v);
v = v;
virtualinvoke v.<java.util.Properties: void load(java.io.InputStream)>(v);
virtualinvoke v.<java.util.Properties: java.lang.Object put(java.lang.Object,java.lang.Object)>("__picocli_internal_location", v);
label:
staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine: void close(java.io.Closeable)>(v);
goto label;
label:
v := @caughtexception;
v = newarray (java.lang.Object)[2];
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v[0] = v;
v[1] = v;
virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Tracer: void warn(java.lang.String,java.lang.Object[])>("could not read defaults from %s: %s%n", v);
label:
staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine: void close(java.io.Closeable)>(v);
goto label;
label:
v := @caughtexception;
staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine: void close(java.io.Closeable)>(v);
throw v;
label:
v = newarray (java.lang.Object)[1];
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v[0] = v;
virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Tracer: void warn(java.lang.String,java.lang.Object[])>("defaults configuration file %s does not exist or is not readable%n", v);
label:
return v;
catch java.io.IOException from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
private static java.util.Properties loadProperties(org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)
{
java.lang.String v, v, v, v, v;
boolean v, v;
java.util.Properties v, v, v;
java.util.Iterator v;
org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec v, v;
java.util.Set v;
java.io.File v, v;
java.lang.Object v;
v := @parameter: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec;
if v != null goto label;
return null;
label:
v = staticinvoke <java.lang.System: java.util.Properties getProperties()>();
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec: java.util.Set names()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Object)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("org.junit.platform.console.shadow.picocli.defaults.\u.path");
v = virtualinvoke v.<java.util.Properties: java.lang.String getProperty(java.lang.String)>(v);
v = new java.io.File;
v = virtualinvoke v.<java.util.Properties: java.lang.String getProperty(java.lang.String)>("user.home");
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>(".\u.properties");
specialinvoke v.<java.io.File: void <init>(java.lang.String,java.lang.String)>(v, v);
if v != null goto label;
v = v;
goto label;
label:
v = new java.io.File;
specialinvoke v.<java.io.File: void <init>(java.lang.String)>(v);
label:
v = virtualinvoke v.<java.io.File: boolean canRead()>();
if v == 0 goto label;
v = staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties createProperties(java.io.File,org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v, v);
return v;
label:
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec parent()>();
v = staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties loadProperties(org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v);
return v;
}
public java.lang.String defaultValue(org.junit.platform.console.shadow.picocli.CommandLine$Model$ArgSpec) throws java.lang.Exception
{
java.util.Properties v, v, v, v, v, v;
org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec v;
org.junit.platform.console.shadow.picocli.CommandLine$Model$ArgSpec v;
java.lang.Object v;
java.lang.String v;
boolean v, v;
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
v := @parameter: org.junit.platform.console.shadow.picocli.CommandLine$Model$ArgSpec;
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
if v != null goto label;
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$ArgSpec: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec command()>();
v = staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties loadProperties(org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v);
v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties> = v;
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
if v == null goto label;
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
v = virtualinvoke v.<java.util.Properties: java.lang.Object remove(java.lang.Object)>("__picocli_internal_location");
label:
v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.io.File location> = v;
label:
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
if v == null goto label;
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
v = virtualinvoke v.<java.util.Properties: boolean isEmpty()>();
if v == 0 goto label;
label:
return null;
label:
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$ArgSpec: boolean isOption()>();
if v == 0 goto label;
v = specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.lang.String optionDefaultValue(org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec)>(v);
goto label;
label:
v = specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.lang.String positionalDefaultValue(org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec)>(v);
label:
return v;
}
private java.lang.String optionDefaultValue(org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec)
{
org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec v, v;
java.lang.String v, v, v, v, v;
org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec v;
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
v := @parameter: org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec;
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec: java.lang.String descriptionKey()>();
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec command()>();
v = specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.lang.String getValue(java.lang.String,org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v, v);
if v == null goto label;
v = v;
goto label;
label:
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec: java.lang.String longestName()>();
v = staticinvoke <org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.lang.String stripPrefix(java.lang.String)>(v);
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$OptionSpec: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec command()>();
v = specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.lang.String getValue(java.lang.String,org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v, v);
label:
return v;
}
private static java.lang.String stripPrefix(java.lang.String)
{
int v, v;
char v;
java.lang.String v, v;
boolean v;
v := @parameter: java.lang.String;
v = 0;
label:
v = virtualinvoke v.<java.lang.String: int length()>();
if v >= v goto label;
v = virtualinvoke v.<java.lang.String: char charAt(int)>(v);
v = staticinvoke <java.lang.Character: boolean isJavaIdentifierPart(char)>(v);
if v == 0 goto label;
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int)>(v);
return v;
label:
v = v + 1;
goto label;
label:
return v;
}
private java.lang.String positionalDefaultValue(org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec)
{
org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec v;
org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec v, v;
java.lang.String v, v, v, v;
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
v := @parameter: org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec;
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec: java.lang.String descriptionKey()>();
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec command()>();
v = specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.lang.String getValue(java.lang.String,org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v, v);
if v == null goto label;
v = v;
goto label;
label:
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec: java.lang.String paramLabel()>();
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$PositionalParamSpec: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec command()>();
v = specialinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.lang.String getValue(java.lang.String,org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)>(v, v);
label:
return v;
}
private java.lang.String getValue(java.lang.String, org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec)
{
java.util.Properties v, v;
org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec v;
java.lang.String v, v, v, v, v;
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
v := @parameter: java.lang.String;
v := @parameter: org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec;
v = null;
if v == null goto label;
v = virtualinvoke v.<org.junit.platform.console.shadow.picocli.CommandLine$Model$CommandSpec: java.lang.String qualifiedName(java.lang.String)>(".");
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u.\u0001");
v = virtualinvoke v.<java.util.Properties: java.lang.String getProperty(java.lang.String)>(v);
label:
if v == null goto label;
return v;
label:
if v != null goto label;
v = null;
goto label;
label:
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.util.Properties properties>;
v = virtualinvoke v.<java.util.Properties: java.lang.String getProperty(java.lang.String)>(v);
label:
return v;
}
public java.lang.String toString()
{
java.lang.Class v;
java.lang.String v, v;
java.io.File v;
org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider v;
v := @this: org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider;
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Class: java.lang.String getSimpleName()>();
v = v.<org.junit.platform.console.shadow.picocli.CommandLine$PropertiesDefaultProvider: java.io.File location>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.io.File)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u[\u]");
return v;
}
}