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.
|
compileToIterator
compileToBoolean
allocateStatic, compileItemFromInt, compileToLoop, compileToPrimitive, generateMethod, handleEmptyStringResult, printStackTop, 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, 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
ExpressionCompiler
compileToItem
in class ToPushCompiler
compiler
- the compiler serviceexpression
- the expression to be compiledCannotCompileException
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.