|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.metadata.AttributeC
Parses a given source tree and compiles "runtime attributes" (set as JavaDoc tags throughout the code) into an XML definition.
Can be called from the command line. Validation is turned off by default. To turn it on feed the JVM with:-Daspectwerkz.definition.validate=true
Field Summary | |
static java.lang.String |
CALLERSIDE_POINTCUT_NAME
|
static java.lang.String |
CFLOW_POINTCUT_NAME
|
static java.lang.String |
CONTROLLER_POINTCUT_NAME
|
static java.lang.String |
GETFIELD_POINTCUT_NAME
|
static java.lang.String |
METHOD_POINTCUT_NAME
|
static java.lang.String |
SETFIELD_POINTCUT_NAME
|
static java.lang.String |
THROWS_POINTCUT_NAME
|
Constructor Summary | |
AttributeC()
|
Method Summary | |
static void |
compile(java.lang.String sourcePath,
java.lang.String fileName)
Parses a given source tree, retrieves the runtime attributes defined in the code and creates an XML definition based on these attributes. |
static void |
compile(java.lang.String sourcePath,
java.lang.String fileName,
java.lang.String definitionFileToMerge,
java.lang.String uuid)
Parses a given source tree, retrieves the runtime attributes defined in the code and creates an XML definition based on these attributes. |
static org.dom4j.Document |
createDocument(AspectWerkzDefinition definition,
java.lang.String uuid)
Creates a DOM documents out of the definition. |
static void |
main(java.lang.String[] args)
Runs the compiler from the command line. |
static void |
parseRuntimeAttributes(AspectWerkzDefinition definition,
java.lang.String sourcePath)
Parses the attributes and creates definitions for the matching attributes. |
static void |
writeDocumentToFile(org.dom4j.Document document,
java.lang.String fileName)
Writes a DOM document to file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String METHOD_POINTCUT_NAME
public static final java.lang.String SETFIELD_POINTCUT_NAME
public static final java.lang.String GETFIELD_POINTCUT_NAME
public static final java.lang.String THROWS_POINTCUT_NAME
public static final java.lang.String CALLERSIDE_POINTCUT_NAME
public static final java.lang.String CFLOW_POINTCUT_NAME
public static final java.lang.String CONTROLLER_POINTCUT_NAME
Constructor Detail |
public AttributeC()
Method Detail |
public static void compile(java.lang.String sourcePath, java.lang.String fileName)
sourcePath
- the path to the sources to compile attributes forfileName
- the full name of the file name to compile the attributes topublic static void compile(java.lang.String sourcePath, java.lang.String fileName, java.lang.String definitionFileToMerge, java.lang.String uuid)
sourcePath
- the path to the sources to compile attributes forfileName
- the full name of the file to compile the attributes todefinitionFileToMerge
- the full name of the file to merge the compiled definition withuuid
- the UUID for the definitionpublic static void parseRuntimeAttributes(AspectWerkzDefinition definition, java.lang.String sourcePath)
definition
- the definitionsourcePath
- the path to the source dirpublic static org.dom4j.Document createDocument(AspectWerkzDefinition definition, java.lang.String uuid)
definition
- the AspectWerkz definitionuuid
- the UUID for the definition
public static void writeDocumentToFile(org.dom4j.Document document, java.lang.String fileName)
document
- the documentfileName
- the name of the file (full path)public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |