public class FixedAttributeCompiler extends ToPushCompiler
| Constructor and Description |
|---|
FixedAttributeCompiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
compileToItem(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression as an Item
Precondition: none.
|
void |
compileToPush(CompilerService compiler,
Expression expression)
Generate bytecode to evaluate the expression in push mode
Precondition: none.
|
protected static void |
generateAttributeValidationPushCode(CompilerService compiler,
ValidatingInstruction instr,
NodeName nodeName,
int nodeNameVar)
Generate code to validate the contents of the attribute against schema definitions.
|
compileToIteratorcompileToBooleanallocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, unboxItem, verify, visitAnnotation, visitLineNumberpublic void compileToPush(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilercompileToPush in class ToIteratorCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionprotected static void generateAttributeValidationPushCode(CompilerService compiler, ValidatingInstruction instr, NodeName nodeName, int nodeNameVar)
compiler - the compiler serviceinstr - the instruction (fixed or computed attribute)nodeName - the (fixed) nodeName of the attribute, or null if the name is computednodeNameVar - the slot number of the variable holding the computed node name, or -1 if the name is fixedpublic void compileToItem(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompilercompileToItem in class ToPushCompilercompiler - the compiler serviceexpression - the expression to be compiledCannotCompileExceptionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.