org.millscript.millscript.loaders
Class XMLSkeletonLoader

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.XMLSkeletonLoader
All Implemented Interfaces:
org.millscript.commons.alert.AlertOrigin

public final class XMLSkeletonLoader
extends BasicTemplateLoader

This class implements the MillScript XML skeleton loader. The specified file is loaded as an XML file, but the elements field and item in the http://www.millscript.org/namespace/skeleton namespace and attribute values starting with ? take on special meaning.


Field Summary
static java.lang.String XML_SKELETON_NAMESPACE
          The XML namespace for MillScripts XML skeletons.
 
Fields inherited from class org.millscript.millscript.loaders.Loader
entry, pack, symbol
 
Constructor Summary
XMLSkeletonLoader()
          Constructs a new XML skeleton loader which supports 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
 

Field Detail

XML_SKELETON_NAMESPACE

public static final java.lang.String XML_SKELETON_NAMESPACE
The XML namespace for MillScripts XML skeletons.

See Also:
Constant Field Values
Constructor Detail

XMLSkeletonLoader

public XMLSkeletonLoader()
Constructs a new XML skeleton loader which supports 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 BasicTemplateLoader
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.