org.codehaus.nanning.attribute
Class AttributesBuilder
java.lang.Object
org.codehaus.nanning.attribute.AttributesBuilder
- All Implemented Interfaces:
- com.thoughtworks.qdox.parser.Builder
- public class AttributesBuilder
- extends java.lang.Object
- implements com.thoughtworks.qdox.parser.Builder
QDox Builder implementation for creating Properties containing attributes.
This Builder should be fed to the QDox Parser where it shall receive callbacks as a source file is parsed.
After the file has been parsed, getEdit() can be called to retrieved the compiled classPropertiesHelper of the class.
An AttributesBuilder can only be used to parse one file at a time. If the AttributesBuilder is to be reused
to parse another file, the reset() method must be called.
- Version:
- $Revision: 1.1 $
- Author:
- Joe Walnes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributesBuilder
public AttributesBuilder()
addPackage
public void addPackage(java.lang.String packageName)
- Specified by:
addPackage in interface com.thoughtworks.qdox.parser.Builder
addImport
public void addImport(java.lang.String importName)
- Specified by:
addImport in interface com.thoughtworks.qdox.parser.Builder
addJavaDoc
public void addJavaDoc(java.lang.String text)
- Specified by:
addJavaDoc in interface com.thoughtworks.qdox.parser.Builder
endClass
public void endClass()
- Specified by:
endClass in interface com.thoughtworks.qdox.parser.Builder
addJavaDocTag
public void addJavaDocTag(java.lang.String tag,
java.lang.String text)
- Specified by:
addJavaDocTag in interface com.thoughtworks.qdox.parser.Builder
beginClass
public void beginClass(com.thoughtworks.qdox.parser.structs.ClassDef def)
- Specified by:
beginClass in interface com.thoughtworks.qdox.parser.Builder
addMethod
public void addMethod(com.thoughtworks.qdox.parser.structs.MethodDef def)
- Specified by:
addMethod in interface com.thoughtworks.qdox.parser.Builder
addField
public void addField(com.thoughtworks.qdox.parser.structs.FieldDef def)
- Specified by:
addField in interface com.thoughtworks.qdox.parser.Builder
getClassPropertiesHelpers
public java.util.List getClassPropertiesHelpers()
Copyright © Jon Tirsen. All Rights Reserved.