org.millscript.millscript.loaders
Class SkeletonLoader

java.lang.Object
  extended by org.millscript.millscript.loaders.Loader
      extended by org.millscript.millscript.loaders.ValueLoader
          extended by org.millscript.millscript.loaders.ExprLoader
              extended by org.millscript.millscript.loaders.BasicTemplateLoader
                  extended by org.millscript.millscript.loaders.BasicXHTMLTemplateLoader
                      extended by org.millscript.millscript.loaders.SkeletonLoader
All Implemented Interfaces:
org.millscript.commons.alert.AlertOrigin

public final class SkeletonLoader
extends BasicXHTMLTemplateLoader

This class implements the MillScript skeleton loader. The specified file is loaded as an XHTML file, but the additional elements field and item and attribute values starting with ? take on special meaning.


Field Summary
 
Fields inherited from class org.millscript.millscript.loaders.Loader
entry, pack, symbol
 
Constructor Summary
SkeletonLoader()
          Constructs a new XHTML skeleton loader which does not support XML namespaces, with the default set of special elements.
 
Method Summary
 Expr compAttributeValue(java.lang.String value)
          Returns the compiled attribute value.
 void compileEndTag(org.millscript.commons.xml.api.token.EndTagToken token)
          Performs any required steps to compile the specified end tag.
 void compileStartTag(org.millscript.commons.xml.api.token.StartTagToken token)
          Performs any required steps to compile the specified start tag.
 Expr makeLambda(java.lang.String theName, Expr body)
          Returns a lambda expression for the specified name and body.
 
Methods inherited from class org.millscript.millscript.loaders.BasicTemplateLoader
compSpecialString, loadExpr
 
Methods inherited from class org.millscript.millscript.loaders.ExprLoader
loadValue
 
Methods inherited from class org.millscript.millscript.loaders.ValueLoader
loadBindings
 
Methods inherited from class org.millscript.millscript.loaders.Loader
getInstance, getLineNumber, getOrigin, getSymbol, newLoader, setContext, setLineNumber, setLoader, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkeletonLoader

public SkeletonLoader()
Constructs a new XHTML skeleton loader which does not support XML namespaces, with the default set of special elements.

Method Detail

compAttributeValue

public Expr compAttributeValue(java.lang.String value)
Description copied from class: BasicTemplateLoader
Returns the compiled attribute value.

Specified by:
compAttributeValue in class BasicTemplateLoader
Parameters:
value - attribute value
Returns:
an Expr compiled from the specified attribute value
See Also:
BasicTemplateLoader.compAttributeValue(java.lang.String)

compileEndTag

public void compileEndTag(org.millscript.commons.xml.api.token.EndTagToken token)
Description copied from class: BasicTemplateLoader
Performs any required steps to compile the specified end tag.

Overrides:
compileEndTag in class BasicTemplateLoader
Parameters:
token - the end tag token to compile
See Also:
BasicTemplateLoader.compileEndTag(org.millscript.commons.xml.api.token.EndTagToken)

compileStartTag

public void compileStartTag(org.millscript.commons.xml.api.token.StartTagToken token)
Description copied from class: BasicTemplateLoader
Performs any required steps to compile the specified start tag.

Overrides:
compileStartTag in class BasicXHTMLTemplateLoader
Parameters:
token - the start tag token to compile
See Also:
BasicTemplateLoader.compileStartTag(org.millscript.commons.xml.api.token.StartTagToken)

makeLambda

public Expr makeLambda(java.lang.String theName,
                       Expr body)
Description copied from class: BasicTemplateLoader
Returns a lambda expression for the specified name and body.

Specified by:
makeLambda in class BasicTemplateLoader
Parameters:
theName - the name for lambda expression
body - the body expression for the lambda expression
Returns:
an Expr
See Also:
BasicTemplateLoader.makeLambda(java.lang.String, org.millscript.millscript.expr.Expr)


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.