public class StandardExecutionEnvironment extends java.lang.Object implements java.lang.Comparable<StandardExecutionEnvironment>, ExecutionEnvironment
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
compilerSourceLevel |
private java.lang.String |
compilerTargetLevel |
private EEVersion |
eeVersion |
private java.lang.String |
profileName |
private java.util.Properties |
profileProperties |
private java.util.Set<java.lang.String> |
systemPackages |
private static java.util.Map<java.lang.String,java.lang.String> |
TARGET_ALIASES |
Constructor and Description |
---|
StandardExecutionEnvironment(java.util.Properties profileProperties)
Do no instantiate.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(StandardExecutionEnvironment otherEnv) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCompilerSourceLevelDefault()
Returns a reasonable compiler source level default for this execution environment.
|
java.lang.String |
getCompilerTargetLevelDefault()
Returns a reasonable compiler target level default for this execution environment.
|
java.lang.String |
getProfileName() |
java.util.Properties |
getProfileProperties() |
java.util.Set<java.lang.String> |
getSystemPackages()
Returns the list of packages (without versions) provided by the execution environment.
|
int |
hashCode() |
boolean |
isCompatibleCompilerTargetLevel(java.lang.String target)
Returns
false if classes compiled with the given compiler target level can
certainly not be executed on this execution environment. |
private EEVersion |
parseEEVersion(java.lang.String systemCaps) |
java.lang.String |
toString() |
private static org.osgi.framework.Version |
toTargetVersion(java.lang.String target) |
private static final java.util.Map<java.lang.String,java.lang.String> TARGET_ALIASES
private java.lang.String profileName
private java.lang.String compilerSourceLevel
private java.lang.String compilerTargetLevel
private java.util.Set<java.lang.String> systemPackages
private EEVersion eeVersion
private java.util.Properties profileProperties
StandardExecutionEnvironment(java.util.Properties profileProperties)
ExecutionEnvironmentUtils.getExecutionEnvironment(String)
.private EEVersion parseEEVersion(java.lang.String systemCaps)
public java.lang.String getProfileName()
getProfileName
in interface ExecutionEnvironment
public java.lang.String getCompilerSourceLevelDefault()
ExecutionEnvironment
getCompilerSourceLevelDefault
in interface ExecutionEnvironment
null
if
unknown.public java.lang.String getCompilerTargetLevelDefault()
ExecutionEnvironment
getCompilerTargetLevelDefault
in interface ExecutionEnvironment
null
if
unknown.public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> getSystemPackages()
ExecutionEnvironment
getSystemPackages
in interface ExecutionEnvironment
public int compareTo(StandardExecutionEnvironment otherEnv)
compareTo
in interface java.lang.Comparable<StandardExecutionEnvironment>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.Properties getProfileProperties()
getProfileProperties
in interface ExecutionEnvironment
public boolean isCompatibleCompilerTargetLevel(java.lang.String target)
ExecutionEnvironment
false
if classes compiled with the given compiler target level can
certainly not be executed on this execution environment. Used to detect inconsistent
configuration.isCompatibleCompilerTargetLevel
in interface ExecutionEnvironment
private static org.osgi.framework.Version toTargetVersion(java.lang.String target)