gnu.kawa.xml

Class MakeElement

Implemented Interfaces:
Inlineable, Named

public class MakeElement
extends NodeConstructor

Field Summary

int
copyNamespacesMode
static MakeElement
makeElement
Object
tag
Optional tag.

Fields inherited from class gnu.mapping.MethodProc

NO_MATCH, NO_MATCH_AMBIGUOUS, NO_MATCH_BAD_TYPE, NO_MATCH_TOO_FEW_ARGS, NO_MATCH_TOO_MANY_ARGS, argTypes

Fields inherited from class gnu.mapping.ProcedureN

noArgs

Method Summary

void
apply(CallContext ctx)
void
compileToNode(ApplyExp exp, Compilation comp, ConsumerTarget target)
static void
endElement(Consumer out, Object type)
NamespaceBinding
getNamespaceNodes()
Type
getReturnType(Expression[] args)
static Symbol
getTagName(ApplyExp exp)
boolean
isHandlingKeywordParameters()
Should KEYWORD: EXPRESSION be mapped to an attribute constructor?
int
numArgs()
void
setHandlingKeywordParameters(boolean value)
void
setNamespaceNodes(NamespaceBinding bindings)
static void
startElement(Consumer out, Object qname, int copyNamespacesMode)
static void
startElement(Consumer out, Object qname, int copyNamespacesMode, NamespaceBinding namespaceNodes)

Methods inherited from class gnu.kawa.xml.NodeConstructor

compile, compileChild, compileToNode, compileUsingNodeTree, finishNode, getReturnType, makeNode, popNodeConsumer, popNodeContext, pushNodeConsumer, pushNodeContext

Methods inherited from class gnu.mapping.MethodProc

applyN, getParameterType, isApplicable, matchFailAsException, mostSpecific, mostSpecific, numParameters, resolveParameterTypes

Methods inherited from class gnu.mapping.ProcedureN

apply0, apply1, apply2, apply3, apply4, applyN

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, 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 gnu.mapping.PropertySet

getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol

Field Details

copyNamespacesMode

public int copyNamespacesMode

makeElement

public static final MakeElement makeElement

tag

public Object tag
Optional tag. If non-null, the element tag is this value, rather than the first parameter.

Method Details

apply

public void apply(CallContext ctx)
Overrides:
apply in interface Procedure

compileToNode

public void compileToNode(ApplyExp exp,
                          Compilation comp,
                          ConsumerTarget target)
Overrides:
compileToNode in interface NodeConstructor

endElement

public static void endElement(Consumer out,
                              Object type)

getNamespaceNodes

public NamespaceBinding getNamespaceNodes()

getReturnType

public Type getReturnType(Expression[] args)
Specified by:
getReturnType in interface Inlineable
Overrides:
getReturnType in interface NodeConstructor

getTagName

public static Symbol getTagName(ApplyExp exp)

isHandlingKeywordParameters

public boolean isHandlingKeywordParameters()
Should KEYWORD: EXPRESSION be mapped to an attribute constructor?

numArgs

public int numArgs()
Overrides:
numArgs in interface Procedure

setHandlingKeywordParameters

public void setHandlingKeywordParameters(boolean value)

setNamespaceNodes

public void setNamespaceNodes(NamespaceBinding bindings)

startElement

public static void startElement(Consumer out,
                                Object qname,
                                int copyNamespacesMode)

startElement

public static void startElement(Consumer out,
                                Object qname,
                                int copyNamespacesMode,
                                NamespaceBinding namespaceNodes)