|
Gant 1.9.6 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.gant.AbstractInclude
abstract class AbstractInclude extends java.lang.Object
This class is for code sharing between classes doing include activity.
| Field Summary | |
|---|---|
protected groovy.lang.Binding |
binding
The |
protected java.util.List |
loadedClasses
The list of loaded classes. |
protected java.lang.Class |
pendingClass
When using the ** * operator there is a need to not instantiate the class immediately so information has to be buffered. |
| Constructor Summary | |
protected AbstractInclude(GantBinding binding)
Constructor. |
|
| Method Summary | |
|---|---|
protected java.lang.Object
|
createInstance(java.lang.Class theClass)
Create an instance of a class included using the << operator. |
protected java.lang.Object
|
createInstance(java.lang.Class theClass, java.util.Map keywordParameters)
Create an instance of a class included with the ** * operator. |
java.lang.Object
|
leftShift(java.lang.Class theClass)
Implementation of the << operator taking a |
java.lang.Object
|
leftShift(java.io.File file)
Implementation of the << operator taking a |
java.lang.Object
|
leftShift(java.lang.String s)
Implementation of the << operator taking a |
java.lang.Object
|
leftShift(java.util.List l)
Implementation of the << operator taking a |
java.lang.Object
|
leftShift(java.lang.Object o)
Implementation of the << operator taking a |
java.lang.Object
|
multiply(java.util.Map keywordParameters)
Implementation of the * operator taking a |
java.lang.Object
|
power(java.lang.Class theClass)
Implementation of the ** operator taking a |
protected java.lang.Object
|
readFile(java.io.File file, boolean asClass = false )
Read a file which may or may not be a class, searching the Gant library path if the file cannot be found at first. |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Field Detail |
|---|
protected groovy.lang.Binding binding
GantBinding for this run.
protected final java.util.List loadedClasses
protected java.lang.Class pendingClass
| Constructor Detail |
|---|
protected AbstractInclude(GantBinding binding)
binding - The GantBinding to associate with.
| Method Detail |
|---|
protected java.lang.Object createInstance(java.lang.Class theClass)
theClass - The Class to instantiate.
protected java.lang.Object createInstance(java.lang.Class theClass, java.util.Map keywordParameters)
theClass - The Class to instantiate.keywordParameter - The Map containing the parameters for construction.
java.lang.Object leftShift(java.lang.Class theClass)
Class parameter.
theClass - The Class to load and instantiate.
java.lang.Object leftShift(java.io.File file)
File parameter.
file - The File to load, compile, and instantiate.
java.lang.Object leftShift(java.lang.String s)
String parameter.
s - The String to compile and instantiate.
java.lang.Object leftShift(java.util.List l)
List parameter.
l - The List of things to load (, compile) and instantiate.
java.lang.Object leftShift(java.lang.Object o)
Object parameter. This always throws an
exception, it is here to avoid using a type other than Class, File,
String or List (of Class, File, or
String).
theClass - The Class to load and instantiate.
java.lang.Object multiply(java.util.Map keywordParameters)
Map parameter. This operator only makes
sense immediately after a ** operator, since only then is there a Class to instantiate.
keywordParameter - The Map of parameters to the constructor.
java.lang.Object power(java.lang.Class theClass)
Class parameter.
theClass - The Class to load and instantiate.
protected java.lang.Object readFile(java.io.File file, boolean asClass = false )
file - The File to read.asClass - Specify whether this is supposed to be a class.
Copyright © 2006–9 The Codehaus. All Rights Reserved.