org.codehaus.gmaven.runtime.support.stubgen.model
Class ModelFactorySupport

java.lang.Object
  extended by org.codehaus.gmaven.runtime.support.stubgen.model.ModelFactorySupport
All Implemented Interfaces:
ModelFactory
Direct Known Subclasses:
ModelFactoryImpl, ModelFactoryImpl

public abstract class ModelFactorySupport
extends Object
implements ModelFactory

Provides support for ModelFactory implementations.

Version:
$Id: ModelFactorySupport.java 18 2009-07-16 09:39:40Z user57 $
Author:
Jason Dillon

Field Summary
protected  ClassDef clazz
           
protected  ParserFactory factory
           
protected  Node lastNode
           
protected  Parser parser
           
protected  SourceDef source
           
 
Constructor Summary
protected ModelFactorySupport(ParserFactory factory)
           
 
Method Summary
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)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected final ParserFactory factory

parser

protected Parser parser

lastNode

protected Node lastNode

source

protected SourceDef source

clazz

protected ClassDef clazz
Constructor Detail

ModelFactorySupport

protected ModelFactorySupport(ParserFactory factory)
Method Detail

create

public SourceDef create(URL input)
                 throws Exception
Specified by:
create in interface ModelFactory
Throws:
Exception

create

public SourceDef create(URL input,
                        SourceType type)
                 throws Exception
Specified by:
create in interface ModelFactory
Throws:
Exception

createRoot

protected SourceDef createRoot(URL input,
                               SourceType type)

addDefaultImports

protected abstract void addDefaultImports(SourceDef model)

process

protected void process(Node node)

packageDef

protected void packageDef(Node parent)

importDef

protected void importDef(Node parent)

interfaceDef

protected void interfaceDef(Node parent)

classDef

protected void classDef(Node parent)

enumDef

protected void enumDef(Node parent)

annotationDef

protected void annotationDef(Node parent)

objectBlock

protected void objectBlock(Node parent)

constructorDef

protected void constructorDef(Node parent)

superParameters

protected void superParameters(ConstructorDef target,
                               Node parent)

superParameter

protected void superParameter(ConstructorDef target,
                              Node parent)

methodDef

protected void methodDef(Node parent)

annotationFieldDef

protected void annotationFieldDef(Node parent)

fieldDef

protected void fieldDef(Node parent)

enumConstantDef

protected void enumConstantDef(Node parent)

name

protected Node name(NameAware target,
                    Node node)

modifiers

protected Node modifiers(ModifiersAware target,
                         Node parent)

interfaces

protected Set interfaces(Node parent)

throwz

protected Node throwz(ThrowsAware target,
                      Node parent)

parameters

protected Node parameters(ParametersAware target,
                          Node parent)

parameter

protected ParameterDef parameter(Node parent)

type

protected TypeDef type(Node parent)

javadocs

protected void javadocs(JavaDocAware target,
                        Node node)

qualifiedName

protected String qualifiedName(Node parent)

identifier

protected String identifier(Node node)


Copyright © 2006-2012 Codehaus. All Rights Reserved.