Package eu.bandm.tools.formattext
Class Model.__Patterns
java.lang.Object
eu.bandm.tools.formattext.Model.__Patterns
- Enclosing class:
Model
@Generated(generator="eu.bandm.tools.umod",
version="",
timestamp="2026-08-09_10h01m04")
public static class Model.__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_Alternative(Pattern<? super Model.Alternative> p) cast_CodeAndFold(Pattern<? super Model.CodeAndFold> p) cast_Compound(Pattern<? super Model.Compound> p) cast_CustomExpression(Pattern<? super Model.CustomExpression> p) cast_Empty(Pattern<? super Model.Empty> p) cast_EscapeToJava(Pattern<? super Model.EscapeToJava> p) cast_Expr(Pattern<? super Model.Expr> p) cast_Indentation(Pattern<? super Model.Indentation> p) cast_List(Pattern<? super Model.List> p) cast_Literal(Pattern<? super Model.Literal> p) cast_ModeAsSelector(Pattern<? super Model.ModeAsSelector> p) cast_NumericCaseLabel(Pattern<? super Model.NumericCaseLabel> p) cast_Prior(Pattern<? super Model.Prior> p) cast_Switch(Pattern<? super Model.Switch> p) cast_Tabular(Pattern<? super Model.Tabular> p) cast_Text(Pattern<? super Model.Text> p) cast_Thiz(Pattern<? super Model.Thiz> p) cast_Throw(Pattern<? super Model.Throw> p) cast_Whitespace(Pattern<? super Model.Whitespace> p) static Pattern<Model.Alternative> term_Alternative(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.Expr> p_left, Pattern<? super Model.Expr> p_right) static Pattern<Model.CodeAndFold> term_CodeAndFold(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.CustomExpression> p_target, Pattern<? super @Opt Model.Expr> p_code, Pattern<? super @Opt Model.Expr> p_leftDelimiterText, Pattern<? super @Opt CompoundConstructor> p_outerOp, Pattern<? super @Opt Model.Expr> p_separatorText, Pattern<? super @Opt CompoundConstructor> p_innerOp, Pattern<? super @Opt Model.Expr> p_rightDelimiterText, Pattern<? super @Opt Model.Expr> p_emptyRepresentation) static Pattern<Model.Compound> term_Compound(Pattern<? super Model.List> superpattern, Pattern<? super CompoundConstructor> p_constructor) static Pattern<Model.CustomExpression> term_CustomExpression(Pattern<? super Model.Expr> superpattern) static Pattern<Model.Empty> term_Empty(Pattern<? super Model.Expr> superpattern) static Pattern<Model.EscapeToJava> term_EscapeToJava(Pattern<? super Model.List> superpattern, Pattern<? super String> p_method, Pattern<? super Boolean> p_useCurrentModel) static Pattern<Model.Expr> static Pattern<Model.Indentation> term_Indentation(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_indentation, Pattern<? super Model.Expr> p_body) static Pattern<Model.List> term_List(Pattern<? super Model.Expr> superpattern, Pattern<? super NonNullList<Model.Expr>> p_subs) static Pattern<Model.Literal> term_Literal(Pattern<? super Model.Expr> superpattern, Pattern<? super String> p_text) static Pattern<Model.ModeAsSelector> term_ModeAsSelector(Pattern<? super Model.Expr> superpattern) static Pattern<Model.NumericCaseLabel> term_NumericCaseLabel(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_value) static Pattern<Model.Prior> term_Prior(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_level, Pattern<? super Integer> p_assoc, Pattern<? super Model.Expr> p_noparens, Pattern<? super Model.Expr> p_parens) static Pattern<Model.Switch> term_Switch(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.Expr> p_selector, Pattern<? super NonNullMap<Model.Expr, Model.Expr>> p_cases, Pattern<? super @Opt Model.Expr> p_defaultCase) static Pattern<Model.Tabular> term_Tabular(Pattern<? super Model.List> superpattern) static Pattern<Model.Text> term_Text(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.Expr> p_body) static Pattern<Model.Thiz> term_Thiz(Pattern<? super Model.CustomExpression> superpattern) static Pattern<Model.Throw> term_Throw(Pattern<? super Model.Expr> superpattern) static Pattern<Model.Whitespace> term_Whitespace(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_width)
-
Constructor Details
-
__Patterns
public __Patterns()
-
-
Method Details
-
cast_Throw
-
term_Throw
-
cast_List
-
term_List
public static Pattern<Model.List> term_List(Pattern<? super Model.Expr> superpattern, Pattern<? super NonNullList<Model.Expr>> p_subs) -
cast_CodeAndFold
-
term_CodeAndFold
public static Pattern<Model.CodeAndFold> term_CodeAndFold(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.CustomExpression> p_target, Pattern<? super @Opt Model.Expr> p_code, Pattern<? super @Opt Model.Expr> p_leftDelimiterText, Pattern<? super @Opt CompoundConstructor> p_outerOp, Pattern<? super @Opt Model.Expr> p_separatorText, Pattern<? super @Opt CompoundConstructor> p_innerOp, Pattern<? super @Opt Model.Expr> p_rightDelimiterText, Pattern<? super @Opt Model.Expr> p_emptyRepresentation) -
cast_Switch
-
term_Switch
public static Pattern<Model.Switch> term_Switch(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.Expr> p_selector, Pattern<? super NonNullMap<Model.Expr, Model.Expr>> p_cases, Pattern<? super @Opt Model.Expr> p_defaultCase) -
cast_ModeAsSelector
-
term_ModeAsSelector
public static Pattern<Model.ModeAsSelector> term_ModeAsSelector(Pattern<? super Model.Expr> superpattern) -
cast_Text
-
term_Text
public static Pattern<Model.Text> term_Text(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.Expr> p_body) -
cast_EscapeToJava
-
term_EscapeToJava
public static Pattern<Model.EscapeToJava> term_EscapeToJava(Pattern<? super Model.List> superpattern, Pattern<? super String> p_method, Pattern<? super Boolean> p_useCurrentModel) -
cast_Indentation
-
term_Indentation
public static Pattern<Model.Indentation> term_Indentation(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_indentation, Pattern<? super Model.Expr> p_body) -
cast_NumericCaseLabel
-
term_NumericCaseLabel
public static Pattern<Model.NumericCaseLabel> term_NumericCaseLabel(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_value) -
cast_Whitespace
-
term_Whitespace
public static Pattern<Model.Whitespace> term_Whitespace(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_width) -
cast_Tabular
-
term_Tabular
-
cast_Compound
-
term_Compound
public static Pattern<Model.Compound> term_Compound(Pattern<? super Model.List> superpattern, Pattern<? super CompoundConstructor> p_constructor) -
cast_Alternative
-
term_Alternative
public static Pattern<Model.Alternative> term_Alternative(Pattern<? super Model.Expr> superpattern, Pattern<? super Model.Expr> p_left, Pattern<? super Model.Expr> p_right) -
cast_Thiz
-
term_Thiz
-
cast_Literal
-
term_Literal
public static Pattern<Model.Literal> term_Literal(Pattern<? super Model.Expr> superpattern, Pattern<? super String> p_text) -
cast_Prior
-
term_Prior
public static Pattern<Model.Prior> term_Prior(Pattern<? super Model.Expr> superpattern, Pattern<? super Integer> p_level, Pattern<? super Integer> p_assoc, Pattern<? super Model.Expr> p_noparens, Pattern<? super Model.Expr> p_parens) -
cast_Empty
-
term_Empty
-
cast_CustomExpression
-
term_CustomExpression
public static Pattern<Model.CustomExpression> term_CustomExpression(Pattern<? super Model.Expr> superpattern) -
cast_Expr
-
term_Expr
-