Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.ant.internal.core.ant
Class InternalProject  view InternalProject download InternalProject.java

java.lang.Object
  extended byorg.apache.tools.ant.Project
      extended byorg.eclipse.ant.internal.core.ant.InternalProject

public class InternalProject
extends org.apache.tools.ant.Project

A subclass of Project to facilitate "faster" parsing with less garbage generated. This class is not used on Ant 1.6 and newer due to the improvements in lazy loading of these Ant versions. Only three tasks are loaded (property, taskdef and typedef: three tasks that can be defined outside of a target on Ant 1.5.1 or older). Datatypes are loaded if requested. Derived from the original Ant Project class


Nested Class Summary
 
Nested classes inherited from class org.apache.tools.ant.Project
 
Field Summary
private  java.util.Hashtable typeNameToClass
           
 
Fields inherited from class org.apache.tools.ant.Project
JAVA_1_0, JAVA_1_1, JAVA_1_2, JAVA_1_3, JAVA_1_4, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, TOKEN_END, TOKEN_START
 
Constructor Summary
InternalProject()
           
 
Method Summary
 void addDataTypeDefinition(java.lang.String typeName, java.lang.Class typeClass)
          Adds a new datatype definition.
 java.lang.Object createDataType(java.lang.String typeName)
          Creates a new instance of a data type.
 java.util.Hashtable getDataTypeDefinitions()
          Returns the current datatype definition hashtable.
 void init()
          Initialises the project.
private  void initializeTypes()
          Initialize the mapping of data type name to data type classname
 
Methods inherited from class org.apache.tools.ant.Project
addBuildListener, addFilter, addOrReplaceTarget, addOrReplaceTarget, addReference, addTarget, addTarget, addTaskDefinition, checkTaskClass, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyInheritedProperties, copyUserProperties, createClassLoader, createTask, defaultInput, demuxFlush, demuxInput, demuxOutput, executeTarget, executeTargets, fireBuildFinished, fireBuildStarted, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireSubBuildFinished, fireSubBuildStarted, fireTargetFinished, fireTargetStarted, fireTaskFinished, fireTaskStarted, getBaseDir, getBuildListeners, getCoreLoader, getDefaultInputStream, getDefaultTarget, getDescription, getElementName, getFilters, getGlobalFilterSet, getInputHandler, getJavaVersion, getName, getProperties, getProperty, getReference, getReferences, getTargets, getTaskDefinitions, getThreadTask, getUserProperties, getUserProperty, initSubProject, isKeepGoingMode, log, log, log, log, registerThreadTask, removeBuildListener, replaceProperties, resolveFile, resolveFile, setBaseDir, setBasedir, setCoreLoader, setDefault, setDefaultInputStream, setDefaultTarget, setDescription, setFileLastModified, setInheritedProperty, setInputHandler, setJavaVersionProperty, setKeepGoingMode, setName, setNewProperty, setProjectReference, setProperty, setSystemProperties, setUserProperty, toBoolean, topoSort, translatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeNameToClass

private java.util.Hashtable typeNameToClass
Constructor Detail

InternalProject

public InternalProject()
Method Detail

init

public void init()
          throws org.apache.tools.ant.BuildException
Description copied from class: org.apache.tools.ant.Project
Initialises the project. This involves setting the default task definitions and loading the system properties.


createDataType

public java.lang.Object createDataType(java.lang.String typeName)
                                throws org.apache.tools.ant.BuildException
Description copied from class: org.apache.tools.ant.Project
Creates a new instance of a data type.


initializeTypes

private void initializeTypes()
Initialize the mapping of data type name to data type classname


getDataTypeDefinitions

public java.util.Hashtable getDataTypeDefinitions()
Description copied from class: org.apache.tools.ant.Project
Returns the current datatype definition hashtable. The returned hashtable is "live" and so should not be modified.


addDataTypeDefinition

public void addDataTypeDefinition(java.lang.String typeName,
                                  java.lang.Class typeClass)
Description copied from class: org.apache.tools.ant.Project
Adds a new datatype definition. Attempting to override an existing definition with an equivalent one (i.e. with the same classname) results in a verbose log message. Attempting to override an existing definition with a different one results in a warning log message, but the definition is changed.