public class ProcessingInstructionCompiler extends SimpleNodeConstructorCompiler
Constructor and Description |
---|
ProcessingInstructionCompiler() |
Modifier and Type | Method and Description |
---|---|
void |
checkContent(CompilerService compiler,
Expression expression)
Compile code to check the content of the node, and adjust it if necessary
On entry the proposed content is on the stack as a CharSequence; on exit the revised content
must be on the stack as a CharSequence.
|
protected void |
compileNodeName(CompilerService compiler,
Expression expression)
Compile code to generate the node name (if any) and leave it on the top of the stack.
|
protected boolean |
isNamedNodeKind()
Ask whether this instruction generates a kind of node that is named
|
protected void |
pushNode(CompilerService compiler,
Expression expression)
Generate code to write the node to the current receiver.
|
compileToItem, compileToPush, isNoNodeIfEmpty
compileToIterator
compileToBoolean
allocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, unboxItem, verify, visitAnnotation, visitLineNumber
protected boolean isNamedNodeKind()
isNamedNodeKind
in class SimpleNodeConstructorCompiler
protected void compileNodeName(CompilerService compiler, Expression expression) throws CannotCompileException
compileNodeName
in class SimpleNodeConstructorCompiler
CannotCompileException
public void checkContent(CompilerService compiler, Expression expression)
SimpleNodeConstructorCompiler
checkContent
in class SimpleNodeConstructorCompiler
protected void pushNode(CompilerService compiler, Expression expression)
pushNode
in class SimpleNodeConstructorCompiler
compiler
- expression
- Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.