jaxx.compiler.tags
Class StyleHandler

java.lang.Object
  extended by jaxx.compiler.tags.StyleHandler
All Implemented Interfaces:
TagHandler

public class StyleHandler
extends java.lang.Object
implements TagHandler

Handles the <style> tag.

Author:
Ethan Nicholas

Field Summary
static java.lang.String SOURCE_ATTRIBUTE
           
 
Fields inherited from interface jaxx.compiler.tags.TagHandler
XMLNS_ATTRIBUTE
 
Constructor Summary
StyleHandler()
           
 
Method Summary
 void compileFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler)
          Performs the first pass of compilation on an XML tag from a JAXX source file.
 void compileSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler)
          Performs the second pass of compilation on an XML tag from a JAXX source file.
protected  Rule processRule(SimpleNode ruleNode)
           
protected  Selector processSelector(SimpleNode selector)
           
protected  Stylesheet processStylesheet(java.lang.String stylesheetText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_ATTRIBUTE

public static final java.lang.String SOURCE_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

StyleHandler

public StyleHandler()
Method Detail

compileFirstPass

public void compileFirstPass(org.w3c.dom.Element tag,
                             JAXXCompiler compiler)
                      throws CompilerException,
                             java.io.IOException
Description copied from interface: TagHandler
Performs the first pass of compilation on an XML tag from a JAXX source file. TagHandler implementations affect the generated .java file by calling methods in the JAXXCompiler.

Specified by:
compileFirstPass in interface TagHandler
Parameters:
tag - the XML tag to compile
compiler - the active JAXXCompiler
Throws:
CompilerException - if a compilation error occurs
java.io.IOException - if an I/O error occurs

compileSecondPass

public void compileSecondPass(org.w3c.dom.Element tag,
                              JAXXCompiler compiler)
                       throws CompilerException,
                              java.io.IOException
Description copied from interface: TagHandler
Performs the second pass of compilation on an XML tag from a JAXX source file. TagHandler implementations affect the generated .java file by calling methods in the JAXXCompiler.

Specified by:
compileSecondPass in interface TagHandler
Parameters:
tag - the XML tag to compile
compiler - the active JAXXCompiler
Throws:
CompilerException - if a compilation error occurs
java.io.IOException - if an I/O error occurs

processSelector

protected Selector processSelector(SimpleNode selector)

processRule

protected Rule processRule(SimpleNode ruleNode)

processStylesheet

protected Stylesheet processStylesheet(java.lang.String stylesheetText)
                                throws CompilerException
Throws:
CompilerException


Copyright © 2008-2009 CodeLutin. All Rights Reserved.