gnu.kawa.xml

Class MakeElement

public class MakeElement extends NodeConstructor

Field Summary
intcopyNamespacesMode
static MakeElementmakeElement
Objecttag
Optional tag.
Method Summary
voidapply(CallContext ctx)
voidcompileToNode(ApplyExp exp, Compilation comp, ConsumerTarget target)
static voidendElement(Consumer out, Object type)
NamespaceBindinggetNamespaceNodes()
TypegetReturnType(Expression[] args)
static SymbolgetTagName(ApplyExp exp)
booleanisHandlingKeywordParameters()
Should {@code KEYWORD: EXPRESSION} be mapped to an attribute constructor?
intnumArgs()
voidsetHandlingKeywordParameters(boolean value)
voidsetNamespaceNodes(NamespaceBinding bindings)
static voidstartElement(Consumer out, Object qname, int copyNamespacesMode, NamespaceBinding namespaceNodes)
static voidstartElement(Consumer out, Object qname, int copyNamespacesMode)

Field Detail

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 Detail

apply

public void apply(CallContext ctx)

compileToNode

public void compileToNode(ApplyExp exp, Compilation comp, ConsumerTarget target)

endElement

public static void endElement(Consumer out, Object type)

getNamespaceNodes

public NamespaceBinding getNamespaceNodes()

getReturnType

public Type getReturnType(Expression[] args)

getTagName

public static Symbol getTagName(ApplyExp exp)

isHandlingKeywordParameters

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

numArgs

public int numArgs()

setHandlingKeywordParameters

public void setHandlingKeywordParameters(boolean value)

setNamespaceNodes

public void setNamespaceNodes(NamespaceBinding bindings)

startElement

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

startElement

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