Package eu.bandm.tools.tpath.absy
Class TPath.__Patterns
java.lang.Object
eu.bandm.tools.tpath.absy.TPath.__Patterns
- Enclosing class:
TPath
@Generated(generator="eu.bandm.tools.umod",
version="",
timestamp="2026-02-01_13h19m22")
public static class TPath.__Patterns
extends Object
Ancillary class providing Paisley compound patterns.
The methods with names
cast_[T] simply call ReflectionPatterns.forInstancesOf(java.lang.Class, eu.bandm.tools.paisley.Pattern). Thus they combine a pattern which matches
some super type with a type check.The methods with names
term_[T] get as parameters one pattern for the super class and one for
each own field and combine them to a pattern for the class T.
(The 'term(..)' methods do intentionally not include the code of the 'cast(..)' methods, because the latter is not needed when the former is used as the pattern for the superclass.)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncast_AxisSpecifier(Pattern<? super TPath.AxisSpecifier> p) cast_BinaryExpr(Pattern<? super TPath.BinaryExpr> p) cast_Comment(Pattern<? super TPath.Comment> p) cast_ComparisonExpr(Pattern<? super TPath.ComparisonExpr> p) cast_EqualityExpr(Pattern<? super TPath.EqualityExpr> p) cast_Expr(Pattern<? super TPath.Expr> p) cast_Filter(Pattern<? super TPath.Filter> p) cast_FunctionCall(Pattern<? super TPath.FunctionCall> p) cast_Item(Pattern<? super TPath.Item> p) cast_Literal(Pattern<? super TPath.Literal> p) cast_LogicalExpr(Pattern<? super TPath.LogicalExpr> p) cast_Minus(Pattern<? super TPath.Minus> p) cast_Mult(Pattern<? super TPath.Mult> p) cast_NameTest(Pattern<? super TPath.NameTest> p) cast_Node(Pattern<? super TPath.Node> p) cast_Number(Pattern<? super TPath.Number> p) cast_NumericExpr(Pattern<? super TPath.NumericExpr> p) cast_Paren(Pattern<? super TPath.Paren> p) cast_PathExpr(Pattern<? super TPath.PathExpr> p) cast_Plus(Pattern<? super TPath.Plus> p) cast_Root(Pattern<? super TPath.Root> p) cast_Step(Pattern<? super TPath.Step> p) cast_Test(Pattern<? super TPath.Test> p) cast_Text(Pattern<? super TPath.Text> p) cast_TypeTest(Pattern<? super TPath.TypeTest> p) cast_UnaryExpr(Pattern<? super TPath.UnaryExpr> p) cast_Union(Pattern<? super TPath.Union> p) cast_ValueExpr(Pattern<? super TPath.ValueExpr> p) cast_VariableReference(Pattern<? super TPath.VariableReference> p) term_And(Pattern<? super TPath.LogicalExpr> superpattern) static Pattern<TPath.AxisSpecifier> term_AxisSpecifier(Pattern<? super TPath.Item> superpattern, Pattern<? super Axis> p_axis) static Pattern<TPath.BinaryExpr> term_BinaryExpr(Pattern<? super TPath.Expr> superpattern, Pattern<? super TPath.Expr> p_left, Pattern<? super TPath.Expr> p_right) static Pattern<TPath.Comment> term_Comment(Pattern<? super TPath.TypeTest> superpattern) static Pattern<TPath.ComparisonExpr> term_ComparisonExpr(Pattern<? super TPath.BinaryExpr> superpattern) term_Div(Pattern<? super TPath.NumericExpr> superpattern) term_Eq(Pattern<? super TPath.EqualityExpr> superpattern) static Pattern<TPath.EqualityExpr> term_EqualityExpr(Pattern<? super TPath.BinaryExpr> superpattern) static Pattern<TPath.Expr> term_Expr(Pattern<? super TPath.Item> superpattern, Pattern<? super Boolean> p_forcing, Pattern<? super Boolean> p_forced) static Pattern<TPath.Filter> term_Filter(Pattern<? super TPath.BinaryExpr> superpattern) static Pattern<TPath.FunctionCall> term_FunctionCall(Pattern<? super TPath.Expr> superpattern, Pattern<? super String> p_name, Pattern<? super NonNullList<TPath.Expr>> p_args) term_Geq(Pattern<? super TPath.ComparisonExpr> superpattern) term_Gt(Pattern<? super TPath.ComparisonExpr> superpattern) static Pattern<TPath.Item> term_Item(Pattern<Object> superpattern, Pattern<? super @Opt Location<XMLDocumentIdentifier>> p_location) term_Leq(Pattern<? super TPath.ComparisonExpr> superpattern) static Pattern<TPath.Literal> term_Literal(Pattern<? super TPath.ValueExpr> superpattern, Pattern<? super String> p_text) static Pattern<TPath.LogicalExpr> term_LogicalExpr(Pattern<? super TPath.BinaryExpr> superpattern) term_Lt(Pattern<? super TPath.ComparisonExpr> superpattern) static Pattern<TPath.Minus> term_Minus(Pattern<? super TPath.NumericExpr> superpattern) term_Mod(Pattern<? super TPath.NumericExpr> superpattern) static Pattern<TPath.Mult> term_Mult(Pattern<? super TPath.NumericExpr> superpattern) static Pattern<TPath.NameTest> term_NameTest(Pattern<? super TPath.Test> superpattern, Pattern<? super @Opt String> p_prefix, Pattern<? super @Opt String> p_suffix) term_Neg(Pattern<? super TPath.UnaryExpr> superpattern) term_Neq(Pattern<? super TPath.EqualityExpr> superpattern) static Pattern<TPath.Node> term_Node(Pattern<? super TPath.TypeTest> superpattern) static Pattern<TPath.Number> term_Number(Pattern<? super TPath.ValueExpr> superpattern, Pattern<? super Double> p_value) static Pattern<TPath.NumericExpr> term_NumericExpr(Pattern<? super TPath.BinaryExpr> superpattern) term_Or(Pattern<? super TPath.LogicalExpr> superpattern) static Pattern<TPath.Paren> term_Paren(Pattern<? super TPath.UnaryExpr> superpattern) static Pattern<TPath.PathExpr> term_PathExpr(Pattern<? super TPath.Expr> superpattern) static Pattern<TPath.Plus> term_Plus(Pattern<? super TPath.NumericExpr> superpattern) static Pattern<TPath.ProcessingInstruction> term_ProcessingInstruction(Pattern<? super TPath.TypeTest> superpattern, Pattern<? super @Opt String> p_target) static Pattern<TPath.Root> term_Root(Pattern<? super TPath.PathExpr> superpattern) static Pattern<TPath.Step> term_Step(Pattern<? super TPath.PathExpr> superpattern, Pattern<? super @Opt TPath.Expr> p_base, Pattern<? super TPath.AxisSpecifier> p_axis, Pattern<? super TPath.Test> p_test, Pattern<? super NonNullList<TPath.Expr>> p_predicates) static Pattern<TPath.Test> term_Test(Pattern<? super TPath.Item> superpattern) static Pattern<TPath.Text> term_Text(Pattern<? super TPath.TypeTest> superpattern) static Pattern<TPath.TypeTest> term_TypeTest(Pattern<? super TPath.Test> superpattern) static Pattern<TPath.UnaryExpr> term_UnaryExpr(Pattern<? super TPath.Expr> superpattern, Pattern<? super TPath.Expr> p_arg) static Pattern<TPath.Union> term_Union(Pattern<? super TPath.BinaryExpr> superpattern) static Pattern<TPath.ValueExpr> term_ValueExpr(Pattern<? super TPath.Expr> superpattern) static Pattern<TPath.VariableReference> term_VariableReference(Pattern<? super TPath.ValueExpr> superpattern, Pattern<? super String> p_name)
-
Constructor Details
-
__Patterns
public __Patterns()
-
-
Method Details
-
cast_Plus
-
term_Plus
-
cast_Neq
-
term_Neq
-
cast_Step
-
term_Step
public static Pattern<TPath.Step> term_Step(Pattern<? super TPath.PathExpr> superpattern, Pattern<? super @Opt TPath.Expr> p_base, Pattern<? super TPath.AxisSpecifier> p_axis, Pattern<? super TPath.Test> p_test, Pattern<? super NonNullList<TPath.Expr>> p_predicates) -
cast_Geq
-
term_Geq
-
cast_Mod
-
term_Mod
-
cast_Paren
-
term_Paren
-
cast_Lt
-
term_Lt
-
cast_Item
-
term_Item
public static Pattern<TPath.Item> term_Item(Pattern<Object> superpattern, Pattern<? super @Opt Location<XMLDocumentIdentifier>> p_location) -
cast_Root
-
term_Root
-
cast_Or
-
term_Or
-
cast_EqualityExpr
-
term_EqualityExpr
public static Pattern<TPath.EqualityExpr> term_EqualityExpr(Pattern<? super TPath.BinaryExpr> superpattern) -
cast_PathExpr
-
term_PathExpr
-
cast_And
-
term_And
-
cast_LogicalExpr
-
term_LogicalExpr
public static Pattern<TPath.LogicalExpr> term_LogicalExpr(Pattern<? super TPath.BinaryExpr> superpattern) -
cast_NumericExpr
-
term_NumericExpr
public static Pattern<TPath.NumericExpr> term_NumericExpr(Pattern<? super TPath.BinaryExpr> superpattern) -
cast_Minus
-
term_Minus
-
cast_Union
-
term_Union
-
cast_Filter
-
term_Filter
-
cast_Expr
-
term_Expr
public static Pattern<TPath.Expr> term_Expr(Pattern<? super TPath.Item> superpattern, Pattern<? super Boolean> p_forcing, Pattern<? super Boolean> p_forced) -
cast_Literal
-
term_Literal
public static Pattern<TPath.Literal> term_Literal(Pattern<? super TPath.ValueExpr> superpattern, Pattern<? super String> p_text) -
cast_Comment
-
term_Comment
-
cast_UnaryExpr
-
term_UnaryExpr
public static Pattern<TPath.UnaryExpr> term_UnaryExpr(Pattern<? super TPath.Expr> superpattern, Pattern<? super TPath.Expr> p_arg) -
cast_Number
-
term_Number
public static Pattern<TPath.Number> term_Number(Pattern<? super TPath.ValueExpr> superpattern, Pattern<? super Double> p_value) -
cast_VariableReference
-
term_VariableReference
public static Pattern<TPath.VariableReference> term_VariableReference(Pattern<? super TPath.ValueExpr> superpattern, Pattern<? super String> p_name) -
cast_Div
-
term_Div
-
cast_Leq
-
term_Leq
-
cast_ProcessingInstruction
public static Pattern<Object> cast_ProcessingInstruction(Pattern<? super TPath.ProcessingInstruction> p) -
term_ProcessingInstruction
public static Pattern<TPath.ProcessingInstruction> term_ProcessingInstruction(Pattern<? super TPath.TypeTest> superpattern, Pattern<? super @Opt String> p_target) -
cast_Neg
-
term_Neg
-
cast_AxisSpecifier
-
term_AxisSpecifier
public static Pattern<TPath.AxisSpecifier> term_AxisSpecifier(Pattern<? super TPath.Item> superpattern, Pattern<? super Axis> p_axis) -
cast_Node
-
term_Node
-
cast_Mult
-
term_Mult
-
cast_ComparisonExpr
-
term_ComparisonExpr
public static Pattern<TPath.ComparisonExpr> term_ComparisonExpr(Pattern<? super TPath.BinaryExpr> superpattern) -
cast_Test
-
term_Test
-
cast_BinaryExpr
-
term_BinaryExpr
public static Pattern<TPath.BinaryExpr> term_BinaryExpr(Pattern<? super TPath.Expr> superpattern, Pattern<? super TPath.Expr> p_left, Pattern<? super TPath.Expr> p_right) -
cast_FunctionCall
-
term_FunctionCall
public static Pattern<TPath.FunctionCall> term_FunctionCall(Pattern<? super TPath.Expr> superpattern, Pattern<? super String> p_name, Pattern<? super NonNullList<TPath.Expr>> p_args) -
cast_NameTest
-
term_NameTest
public static Pattern<TPath.NameTest> term_NameTest(Pattern<? super TPath.Test> superpattern, Pattern<? super @Opt String> p_prefix, Pattern<? super @Opt String> p_suffix) -
cast_Text
-
term_Text
-
cast_ValueExpr
-
term_ValueExpr
-
cast_Gt
-
term_Gt
-
cast_Eq
-
term_Eq
-
cast_TypeTest
-
term_TypeTest
-