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.
|
compileToIterator
compileToBoolean
allocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, unboxItem, verify, visitAnnotation, visitLineNumber
public void compileToPush(CompilerService compiler, Expression expression) throws CannotCompileException
ExpressionCompiler
compileToPush
in class ToIteratorCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
protected 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
ExpressionCompiler
compileToItem
in class ToPushCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.