Package org.eclipse.tycho.core.ee
Class NoExecutionEnvironment
- java.lang.Object
-
- org.eclipse.tycho.core.ee.NoExecutionEnvironment
-
- All Implemented Interfaces:
ExecutionEnvironment
public class NoExecutionEnvironment extends java.lang.Object implements ExecutionEnvironment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.tycho.core.ee.shared.ExecutionEnvironment
ExecutionEnvironment.SystemPackageEntry
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Properties
EMPTY_PROPERTIES
static NoExecutionEnvironment
INSTANCE
static java.lang.String
NAME
-
Constructor Summary
Constructors Modifier Constructor Description private
NoExecutionEnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Collection<ExecutionEnvironment.SystemPackageEntry>
getSystemPackages()
Returns the list of packages (without versions) provided by the execution environment.boolean
isCompatibleCompilerTargetLevel(java.lang.String targetLevel)
Returnsfalse
if classes compiled with the given compiler target level can certainly not be executed on this execution environment.
-
-
-
Field Detail
-
EMPTY_PROPERTIES
private static final java.util.Properties EMPTY_PROPERTIES
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static final NoExecutionEnvironment INSTANCE
-
-
Method Detail
-
getProfileName
public java.lang.String getProfileName()
- Specified by:
getProfileName
in interfaceExecutionEnvironment
-
getSystemPackages
public java.util.Collection<ExecutionEnvironment.SystemPackageEntry> getSystemPackages()
Description copied from interface:ExecutionEnvironment
Returns the list of packages (without versions) provided by the execution environment.- Specified by:
getSystemPackages
in interfaceExecutionEnvironment
-
getProfileProperties
public java.util.Properties getProfileProperties()
- Specified by:
getProfileProperties
in interfaceExecutionEnvironment
-
getCompilerSourceLevelDefault
public java.lang.String getCompilerSourceLevelDefault()
Description copied from interface:ExecutionEnvironment
Returns a reasonable compiler source level default for this execution environment.- Specified by:
getCompilerSourceLevelDefault
in interfaceExecutionEnvironment
- Returns:
- a compiler source level matching the execution environment, or
null
if unknown.
-
getCompilerTargetLevelDefault
public java.lang.String getCompilerTargetLevelDefault()
Description copied from interface:ExecutionEnvironment
Returns a reasonable compiler target level default for this execution environment.- Specified by:
getCompilerTargetLevelDefault
in interfaceExecutionEnvironment
- Returns:
- a compiler target level matching the execution environment, or
null
if unknown.
-
isCompatibleCompilerTargetLevel
public boolean isCompatibleCompilerTargetLevel(java.lang.String targetLevel)
Description copied from interface:ExecutionEnvironment
Returnsfalse
if classes compiled with the given compiler target level can certainly not be executed on this execution environment. Used to detect inconsistent configuration.- Specified by:
isCompatibleCompilerTargetLevel
in interfaceExecutionEnvironment
-
-