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,
int nameCode,
int nameCodeVar)
Generate code to validate the contents of the attribute against schema definitions.
|
compileToIteratorcompileToBooleanallocateStatic, compileItemFromInt, compileItemFromString, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, throwXPathException, throwXPathException, 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, int nameCode, int nameCodeVar)
compiler - the compiler serviceinstr - the instruction (fixed or computed attribute)nameCode - the (fixed) namecode of the attribute, or -1 if the name is computednameCodeVar - the slot number of the variable holding the computed namecode, 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-2013 Saxonica Limited. All rights reserved.