Package org.nuiton.jaxx.compiler.tags
Interface TagHandler
-
- All Known Implementing Classes:
AbstractButtonHandler,ApplicationHandler,BeanValidatorHandler,CellHandler,DefaultComponentHandler,DefaultObjectHandler,ExcludeFieldValidatorHandler,FieldValidatorHandler,ImportHandler,ItemHandler,JAXXComboBoxHandler,JAXXListHandler,JAXXTabHandler,JAXXTreeHandler,JCheckBoxHandler,JComboBoxHandler,JInternalFrameHandler,JListHandler,JMenuHandler,JPasswordFieldHandler,JPopupMenuHandler,JProgressBarHandler,JRadioButtonHandler,JScrollPaneHandler,JSliderHandler,JSpinnerHandler,JSplitPaneHandler,JTabbedPaneHandler,JTextComponentHandler,JToolBarHandler,JTreeHandler,JWindowHandler,JXLayerHandler,RowHandler,ScriptHandler,StyleHandler,TabHandler,TableHandler,TabWithValidatorHandler
public interface TagHandlerImplementations ofTagHandlerproduce Java source code from XML tags.TagHandlersare mapped to particular XML tags (such as <JFrame>) inJAXXCompiler. There is only oneTagHandlerfor any given XML tag, and therefore implementations must be stateless.- Author:
- Ethan Nicholas
-
-
Field Summary
Fields Modifier and Type Field Description static StringXMLNS_ATTRIBUTE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcompileFirstPass(Element tag, JAXXCompiler compiler)Performs the first pass of compilation on an XML tag from a JAXX source file.voidcompileSecondPass(Element tag, JAXXCompiler compiler)Performs the second pass of compilation on an XML tag from a JAXX source file.
-
-
-
Field Detail
-
XMLNS_ATTRIBUTE
static final String XMLNS_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
compileFirstPass
void compileFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
Performs the first pass of compilation on an XML tag from a JAXX source file.TagHandlerimplementations affect the generated.javafile by calling methods in theJAXXCompiler.- Parameters:
tag- the XML tag to compilecompiler- the active JAXXCompiler- Throws:
CompilerException- if a compilation error occursIOException- if an I/O error occurs
-
compileSecondPass
void compileSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
Performs the second pass of compilation on an XML tag from a JAXX source file.TagHandlerimplementations affect the generated.javafile by calling methods in theJAXXCompiler.- Parameters:
tag- the XML tag to compilecompiler- the active JAXXCompiler- Throws:
CompilerException- if a compilation error occursIOException- if an I/O error occurs
-
-