Package org.eclipse.tycho.core.ee.shared
Class ExecutionEnvironmentStub
- java.lang.Object
-
- org.eclipse.tycho.core.ee.shared.ExecutionEnvironmentStub
-
- All Implemented Interfaces:
ExecutionEnvironment
public class ExecutionEnvironmentStub 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 java.lang.String
profileName
private java.util.Properties
properties
private java.util.List<ExecutionEnvironment.SystemPackageEntry>
systemPackages
-
Constructor Summary
Constructors Constructor Description ExecutionEnvironmentStub(java.lang.String profileName, java.lang.String... systemPackages)
-
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
-
profileName
private final java.lang.String profileName
-
systemPackages
private final java.util.List<ExecutionEnvironment.SystemPackageEntry> systemPackages
-
properties
private java.util.Properties properties
-
-
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
-
-