org.apache.xalan.xsltc.compiler

Class LocationPathPattern

public abstract class LocationPathPattern extends Pattern

Author: Jacek Ambroziak Santiago Pericas-Geertsen Morten Jorgensen

Method Summary
intgetAxis()
doublegetDefaultPriority()
abstract StepPatterngetKernelPattern()
doublegetPriority()
TemplategetTemplate()
abstract booleanisWildcard()
booleannoSmallerThan(LocationPathPattern other)
This method is used by the Mode class to prioritise patterns and template.
abstract voidreduceKernelPattern()
voidsetTemplate(Template template)
StringtoString()
voidtranslate(ClassGenerator classGen, MethodGenerator methodGen)
TypetypeCheck(SymbolTable stable)

Method Detail

getAxis

public int getAxis()

getDefaultPriority

public double getDefaultPriority()

getKernelPattern

public abstract StepPattern getKernelPattern()

getPriority

public final double getPriority()

getTemplate

public Template getTemplate()

isWildcard

public abstract boolean isWildcard()

noSmallerThan

public boolean noSmallerThan(LocationPathPattern other)
This method is used by the Mode class to prioritise patterns and template. This method is called for templates that are in the same mode and that match on the same core pattern. The rules used are: o) first check precedence - highest precedence wins o) then check priority - highest priority wins o) then check the position - the template that occured last wins

reduceKernelPattern

public abstract void reduceKernelPattern()

setTemplate

public void setTemplate(Template template)

toString

public String toString()

translate

public void translate(ClassGenerator classGen, MethodGenerator methodGen)

typeCheck

public Type typeCheck(SymbolTable stable)
Copyright B) 2005 Apache XML Project. All Rights Reserved.