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 ExecutionEnvironmentpublic java.lang.String getCompilerSourceLevelDefault()
ExecutionEnvironmentgetCompilerSourceLevelDefault in interface ExecutionEnvironmentnull if
unknown.public java.lang.String getCompilerTargetLevelDefault()
ExecutionEnvironmentgetCompilerTargetLevelDefault in interface ExecutionEnvironmentnull if
unknown.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<java.lang.String> getSystemPackages()
ExecutionEnvironmentgetSystemPackages in interface ExecutionEnvironmentpublic int compareTo(StandardExecutionEnvironment otherEnv)
compareTo in interface java.lang.Comparable<StandardExecutionEnvironment>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Properties getProfileProperties()
getProfileProperties in interface ExecutionEnvironmentpublic boolean isCompatibleCompilerTargetLevel(java.lang.String target)
ExecutionEnvironmentfalse 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 ExecutionEnvironmentprivate static org.osgi.framework.Version toTargetVersion(java.lang.String target)