|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.loaders.Loader
org.millscript.millscript.loaders.ValueLoader
org.millscript.millscript.loaders.ExprLoader
org.millscript.millscript.loaders.BasicTemplateLoader
public abstract class BasicTemplateLoader
This class is a starting point for implementing a general XML template loader. It allows specific sub-classes to customize the loading process for custom tags and attributes.
| Field Summary |
|---|
| Fields inherited from class org.millscript.millscript.loaders.Loader |
|---|
entry, pack, symbol |
| Method Summary | |
|---|---|
abstract 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 |
compSpecialString(java.lang.String s)
Returns the compiled special string. |
Expr |
loadExpr()
Causes this loader to load it's expression. |
abstract 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.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 |
| Method Detail |
|---|
public abstract Expr compAttributeValue(java.lang.String value)
value - attribute value
public void compileEndTag(org.millscript.commons.xml.api.token.EndTagToken token)
token - the end tag token to compilepublic void compileStartTag(org.millscript.commons.xml.api.token.StartTagToken token)
token - the start tag token to compilepublic final Expr compSpecialString(java.lang.String s)
s - the string to compile
public Expr loadExpr()
ExprLoader
loadExpr in class ExprLoaderExprLoader.loadExpr()
public abstract Expr makeLambda(java.lang.String theName,
Expr body)
theName - the name for lambda expressionbody - the body expression for the lambda expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||