org.mmtk.vm
Class BuildTimeConfig

java.lang.Object
  extended by org.mmtk.vm.BuildTimeConfig
Direct Known Subclasses:
BuildTimeConfig

public abstract class BuildTimeConfig
extends Object

Build-time configuration constants for MMTk.


Constructor Summary
BuildTimeConfig()
           
 
Method Summary
abstract  boolean getBooleanProperty(String name)
          Return a property of type boolean
abstract  boolean getBooleanProperty(String name, boolean dflt)
          Return a property of type boolean, with default.
abstract  int getIntProperty(String name)
          Return a property of type int
abstract  int getIntProperty(String name, int dflt)
          Return a property of type String, with default.
abstract  String getPlanName()
           
abstract  String getStringProperty(String name)
          Return a property of type String
abstract  String getStringProperty(String name, String dflt)
          Return a property of type String, with default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildTimeConfig

public BuildTimeConfig()
Method Detail

getPlanName

public abstract String getPlanName()
Returns:
The name of the current MMTk plan

getStringProperty

public abstract String getStringProperty(String name)
Return a property of type String

Parameters:
name - The name of the property
Returns:
The value of the property

getStringProperty

public abstract String getStringProperty(String name,
                                         String dflt)
Return a property of type String, with default.

Parameters:
name - The name of the property
dflt - Default value
Returns:
The value of the property

getIntProperty

public abstract int getIntProperty(String name)
Return a property of type int

Parameters:
name - The name of the property
Returns:
The value of the property

getIntProperty

public abstract int getIntProperty(String name,
                                   int dflt)
Return a property of type String, with default.

Parameters:
name - The name of the property
dflt - Default value
Returns:
The value of the property

getBooleanProperty

public abstract boolean getBooleanProperty(String name)
Return a property of type boolean

Parameters:
name - The name of the property
Returns:
The value of the property

getBooleanProperty

public abstract boolean getBooleanProperty(String name,
                                           boolean dflt)
Return a property of type boolean, with default.

Parameters:
name - The name of the property
dflt - Default value
Returns:
The value of the property