public abstract class AbstractTypeProcessor extends Object implements TypeProcessor
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger |
protected PropertyContextCreator |
propertyContextCreator |
protected PropertyContextValidator |
propertyContextValidator |
| Constructor and Description |
|---|
AbstractTypeProcessor(PropertyContextCreator propertyContextCreator,
PropertyContextValidator propertyContextValidator,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperty(TypeContext typeContext,
PropertySource propertySource) |
protected void |
addReference(TypeContext typeContext,
PropertySource propertySource) |
protected abstract void |
doProcess(TypeContext typeContext,
Set<? extends com.google.gwt.core.ext.typeinfo.JClassType> skipTypes) |
TypeProcessor |
getNext() |
boolean |
hasNext() |
void |
process(TypeContext typeContext)
Processes the context and adds information about properties, references
or an id.
|
protected void |
setId(TypeContext typeContext,
PropertySource propertySource) |
void |
setNext(TypeProcessor processor)
Sets the next processor
|
protected boolean |
skipType(com.google.gwt.core.ext.typeinfo.JClassType type) |
protected final PropertyContextCreator propertyContextCreator
protected final PropertyContextValidator propertyContextValidator
protected final Logger logger
public AbstractTypeProcessor(PropertyContextCreator propertyContextCreator, PropertyContextValidator propertyContextValidator, Logger logger)
public TypeProcessor getNext()
getNext in interface TypeProcessorpublic void setNext(TypeProcessor processor)
TypeProcessorsetNext in interface TypeProcessorpublic boolean hasNext()
hasNext in interface TypeProcessortrue if there's a next processor, false
otherwise.public final void process(TypeContext typeContext) throws com.google.gwt.core.ext.UnableToCompleteException
TypeProcessorprocess in interface TypeProcessortypeContext - com.google.gwt.core.ext.UnableToCompleteExceptionTypeProcessor.process(name.pehl.piriti.rebind.type.TypeContext)protected abstract void doProcess(TypeContext typeContext, Set<? extends com.google.gwt.core.ext.typeinfo.JClassType> skipTypes) throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionprotected boolean skipType(com.google.gwt.core.ext.typeinfo.JClassType type)
protected void addProperty(TypeContext typeContext, PropertySource propertySource)
protected void setId(TypeContext typeContext, PropertySource propertySource)
protected void addReference(TypeContext typeContext, PropertySource propertySource)
Copyright © 2012 Harald Pehl. All Rights Reserved.