gnu.kawa.xml
Class NodeConstructor
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.ProcedureN
gnu.mapping.MethodProc
gnu.kawa.xml.NodeConstructor
- All Implemented Interfaces:
- Inlineable, Named
- Direct Known Subclasses:
- DocumentConstructor, MakeAttribute, MakeElement, MakeProcInst, MakeText, MakeWithBaseUri
public abstract class NodeConstructor
- extends MethodProc
- implements Inlineable
Method Summary |
void |
compile(ApplyExp exp,
Compilation comp,
Target target)
|
static void |
compileChild(Expression arg,
Compilation comp,
ConsumerTarget target)
|
abstract void |
compileToNode(ApplyExp exp,
Compilation comp,
ConsumerTarget target)
|
static void |
compileUsingNodeTree(Expression exp,
Compilation comp,
Target target)
Compile an expression using a fresh NodeTree. |
static KNode |
finishNode(XMLFilter filter)
|
Type |
getReturnType(Expression[] args)
|
static XMLFilter |
makeNode()
|
static void |
popNodeConsumer(Consumer saved,
Consumer current)
|
static void |
popNodeContext(Consumer saved,
CallContext ctx)
|
static XMLFilter |
pushNodeConsumer(Consumer out)
|
static XMLFilter |
pushNodeContext(CallContext ctx)
|
Methods inherited from class gnu.mapping.Procedure |
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NodeConstructor
public NodeConstructor()
compileToNode
public abstract void compileToNode(ApplyExp exp,
Compilation comp,
ConsumerTarget target)
pushNodeConsumer
public static XMLFilter pushNodeConsumer(Consumer out)
popNodeConsumer
public static void popNodeConsumer(Consumer saved,
Consumer current)
pushNodeContext
public static XMLFilter pushNodeContext(CallContext ctx)
popNodeContext
public static void popNodeContext(Consumer saved,
CallContext ctx)
compileChild
public static void compileChild(Expression arg,
Compilation comp,
ConsumerTarget target)
compileUsingNodeTree
public static void compileUsingNodeTree(Expression exp,
Compilation comp,
Target target)
- Compile an expression using a fresh NodeTree.
Compare with ConsumerTarget.compileUsingConsumer, but creates a NodeTree.
makeNode
public static XMLFilter makeNode()
finishNode
public static KNode finishNode(XMLFilter filter)
compile
public void compile(ApplyExp exp,
Compilation comp,
Target target)
- Specified by:
compile
in interface Inlineable
getReturnType
public Type getReturnType(Expression[] args)
- Specified by:
getReturnType
in interface Inlineable