public abstract class ModelFactorySupport extends Object implements ModelFactory
ModelFactory
implementations.Modifier and Type | Field and Description |
---|---|
protected ClassDef |
clazz |
protected ParserFactory |
factory |
protected Node |
lastNode |
protected Parser |
parser |
protected SourceDef |
source |
Modifier | Constructor and Description |
---|---|
protected |
ModelFactorySupport(ParserFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addDefaultImports(SourceDef model) |
protected void |
annotationDef(Node parent) |
protected void |
annotationFieldDef(Node parent) |
protected void |
classDef(Node parent) |
protected void |
constructorDef(Node parent) |
SourceDef |
create(URL input) |
SourceDef |
create(URL input,
SourceType type) |
SourceDef |
create(URL input,
String encoding) |
SourceDef |
create(URL input,
String encoding,
SourceType type) |
protected SourceDef |
createRoot(URL input,
SourceType type) |
protected void |
enumConstantDef(Node parent) |
protected void |
enumDef(Node parent) |
protected void |
fieldDef(Node parent) |
protected String |
identifier(Node node) |
protected void |
importDef(Node parent) |
protected void |
interfaceDef(Node parent) |
protected Set |
interfaces(Node parent) |
protected void |
javadocs(JavaDocAware target,
Node node) |
protected void |
methodDef(Node parent) |
protected Node |
modifiers(ModifiersAware target,
Node parent) |
protected Node |
name(NameAware target,
Node node) |
protected void |
objectBlock(Node parent) |
protected void |
packageDef(Node parent) |
protected ParameterDef |
parameter(Node parent) |
protected Node |
parameters(ParametersAware target,
Node parent) |
protected void |
process(Node node) |
protected String |
qualifiedName(Node parent) |
protected void |
superParameter(ConstructorDef target,
Node parent) |
protected void |
superParameters(ConstructorDef target,
Node parent) |
protected Node |
throwz(ThrowsAware target,
Node parent) |
protected TypeDef |
type(Node parent) |
protected final ParserFactory factory
protected Parser parser
protected Node lastNode
protected SourceDef source
protected ClassDef clazz
protected ModelFactorySupport(ParserFactory factory)
public SourceDef create(URL input) throws Exception
create
in interface ModelFactory
Exception
public SourceDef create(URL input, SourceType type) throws Exception
create
in interface ModelFactory
Exception
public SourceDef create(URL input, String encoding) throws Exception
create
in interface ModelFactory
Exception
public SourceDef create(URL input, String encoding, SourceType type) throws Exception
create
in interface ModelFactory
Exception
protected SourceDef createRoot(URL input, SourceType type)
protected abstract void addDefaultImports(SourceDef model)
protected void process(Node node)
protected void packageDef(Node parent)
protected void importDef(Node parent)
protected void interfaceDef(Node parent)
protected void classDef(Node parent)
protected void enumDef(Node parent)
protected void annotationDef(Node parent)
protected void objectBlock(Node parent)
protected void constructorDef(Node parent)
protected void superParameters(ConstructorDef target, Node parent)
protected void superParameter(ConstructorDef target, Node parent)
protected void methodDef(Node parent)
protected void annotationFieldDef(Node parent)
protected void fieldDef(Node parent)
protected void enumConstantDef(Node parent)
protected Node modifiers(ModifiersAware target, Node parent)
protected Node throwz(ThrowsAware target, Node parent)
protected Node parameters(ParametersAware target, Node parent)
protected ParameterDef parameter(Node parent)
protected void javadocs(JavaDocAware target, Node node)
Copyright © 2006–2013 Codehaus. All rights reserved.