Package eu.bandm.tools.d2d2.model
Class __Patterns
java.lang.Object
eu.bandm.tools.d2d2.model.__Patterns
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
-
Method Summary
Modifier and TypeMethodDescriptioncast_AdditionalDocs
(Pattern<? super AdditionalDocs> p) cast_CharBinary
(Pattern<? super CharBinary> p) cast_CharCut
(Pattern<? super CharCut> p) cast_CharExpr
(Pattern<? super CharExpr> p) cast_CharJoin
(Pattern<? super CharJoin> p) cast_CharMinus
(Pattern<? super CharMinus> p) cast_CharRange
(Pattern<? super CharRange> p) cast_CharSetConst
(Pattern<? super CharSetConst> p) cast_CharsRegExp
(Pattern<? super CharsRegExp> p) cast_Definition
(Pattern<? super Definition> p) cast_DefInstance
(Pattern<? super DefInstance> p) cast_Empty
(Pattern<? super Empty> p) cast_Enumeration
(Pattern<? super Enumeration> p) cast_Expr0
(Pattern<? super Expr0> p) cast_Expression
(Pattern<? super Expression> p) cast_Greedy
(Pattern<? super Greedy> p) cast_GrMult
(Pattern<? super GrMult> p) cast_GrUnary
(Pattern<? super GrUnary> p) cast_ImportItem
(Pattern<? super ImportItem> p) cast_Insertion
(Pattern<? super Insertion> p) cast_LocString
(Pattern<? super LocString> p) cast_Module
(Pattern<? super Module> p) cast_NamespaceDecl
(Pattern<? super NamespaceDecl> p) cast_ParseParticle
(Pattern<? super ParseParticle> p) cast_Pcdata
(Pattern<? super Pcdata> p) cast_Reference
(Pattern<? super Reference> p) cast_ResolvedModule
(Pattern<? super ResolvedModule> p) cast_SourceItem
(Pattern<? super SourceItem> p) cast_StringConst
(Pattern<? super StringConst> p) cast_Subst
(Pattern<? super Subst> p) cast_TagsRegExp
(Pattern<? super TagsRegExp> p) cast_XRegExp
(Pattern<? super XRegExp> p) static Pattern<AdditionalDocs>
term_AdditionalDocs
(Pattern<Object> superpattern, Pattern<? super CheckedMap_RD<String, CheckedMap_RD<String, CheckedMap_RD<String, CheckedList<LocString>>>>> p_text) static Pattern<CharBinary>
term_CharBinary
(Pattern<? super CharExpr> superpattern, Pattern<? super Expression> p_left, Pattern<? super Expression> p_right) term_CharCut
(Pattern<? super CharBinary> superpattern) term_CharExpr
(Pattern<? super Expression> superpattern) term_CharJoin
(Pattern<? super CharBinary> superpattern) term_CharMinus
(Pattern<? super CharBinary> superpattern) term_CharRange
(Pattern<? super CharBinary> superpattern) static Pattern<CharSetConst>
term_CharSetConst
(Pattern<? super CharExpr> superpattern, Pattern<? super CharSet> p_value) static Pattern<CharsRegExp>
term_CharsRegExp
(Pattern<? super XRegExp> superpattern, Pattern<? super Boolean> p_isDistributed, Pattern<? super Boolean> p_storeAsData, Pattern<? super Expression> p_linearContentModel, Pattern<? super Expression> p_dataContentModel) static Pattern<Definition>
term_Definition
(Pattern<? super SourceItem> superpattern, Pattern<? super Boolean> p_isgeneric, Pattern<? super Boolean> p_ispublic, Pattern<? super Boolean> p_definedAsLocal, Pattern<? super String> p_postproc, Pattern<? super XmlKind> p_xml_kind, Pattern<? super String> p_xml_src_tag, Pattern<? super NamespaceName> p_xml_tag, Pattern<? super String> p_xml_value, Pattern<? super Boolean> p_xml_trimmed, Pattern<? super String> p_editpragmas) static Pattern<DefInstance>
term_DefInstance
(Pattern<Object> superpattern, Pattern<? super Definition> p_raw, Pattern<? super String> p_representingKey, Pattern<? super CheckedSet<String>> p_importKeys) term_Empty
(Pattern<? super Expression> superpattern) static Pattern<Enumeration>
term_Enumeration
(Pattern<? super Definition> superpattern, Pattern<? super CheckedList<String>> p_sourceOrder, Pattern<? super CheckedMap_RD<String, Integer>> p_items, Pattern<? super CheckedMap_RD<Integer, CheckedSet<String>>> p_reverse, Pattern<? super CheckedMap_RD<Integer, String>> p_repr, Pattern<? super EnumRep> p_xml_representation, Pattern<? super Boolean> p_xml_emptystructs, Pattern<? super CheckedMap_RD<Integer, CheckedMap_RD<String, CheckedList<LocString>>>> p_itemDocu) term_Expr0
(Pattern<Object> superpattern, Pattern<? super Location<XMLDocumentIdentifier>> p_location) static Pattern<Expression>
term_Expression
(Pattern<? super Expr0> superpattern, Pattern<? super Boolean> p_canProduceEpsilon, Pattern<? super CheckedMap_RD<String, Expression>> p_firsts, Pattern<? super CheckedMap_RD<String, Expression>> p_weakfirsts) term_Greedy
(Pattern<? super GrUnary> superpattern) term_GrMult
(Pattern<? super Expression> superpattern, Pattern<? super CheckedList<Expression>> p_on) term_GrUnary
(Pattern<? super Expression> superpattern, Pattern<? super Expression> p_on, Pattern<? super Boolean> p_istight) static Pattern<ImportItem>
term_ImportItem
(Pattern<? super SourceItem> superpattern, Pattern<? super String> p_targetURN, Pattern<? super String> p_absolutePath, Pattern<? super Boolean> p_isgeneric, Pattern<? super CheckedMap_RD<String, CheckedMap_RD<String, Expression>>> p_localSubsts, Pattern<? super CheckedMap_RD<String, Expression>> p_globalSubsts) term_Insertion
(Pattern<? super Expression> superpattern, Pattern<? super Expression> p_on, Pattern<? super Boolean> p_synthetic) term_LocString
(Pattern<Object> superpattern, Pattern<? super String> p_text, Pattern<? super Location<XMLDocumentIdentifier>> p_loc) term_Module
(Pattern<? super SourceItem> superpattern, Pattern<? super CheckedMap_RD<String, Module>> p_modules, Pattern<? super CheckedMap_RD<String, ImportItem>> p_imports, Pattern<? super CheckedMap_RD<String, Definition>> p_definitions, Pattern<? super NamespaceName> p_defaultElNs, Pattern<? super CheckedList<NamespaceDecl>> p_namespaces, Pattern<? super Boolean> p_isLocal) static Pattern<NamespaceDecl>
term_NamespaceDecl
(Pattern<Object> superpattern, Pattern<? super String> p_prefix, Pattern<? super String> p_uri, Pattern<? super Boolean> p_isdefault, Pattern<? super Boolean> p_elementonlydefault) term_None
(Pattern<? super Expression> superpattern) static Pattern<ParseParticle>
term_ParseParticle
(Pattern<? super Expression> superpattern, Pattern<? super String> p_ident, Pattern<? super Expression> p_on, Pattern<? super CharsRegExp> p_collector) term_Pcdata
(Pattern<? super Expression> superpattern) term_Perm
(Pattern<? super GrMult> superpattern, Pattern<? super CheckedSet<Expression>> p_obligates) term_Reference
(Pattern<? super Expression> superpattern, Pattern<? super String> p_sourceText, Pattern<? super Boolean> p_isImplicit, Pattern<? super Definition> p_resolved) static Pattern<ResolvedModule>
term_ResolvedModule
(Pattern<? super Module> superpattern, Pattern<? super Module> p_raw, Pattern<? super CheckedMap_RD<Definition, DefInstance>> p_defInstances, Pattern<? super CheckedMap_RD<String, Module>> p_rawModules) static Pattern<SourceItem>
term_SourceItem
(Pattern<Object> superpattern, Pattern<? super SourceItem> p_context, Pattern<? super String> p_name, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super CheckedMap_RD<String, CheckedList<LocString>>> p_docu) static Pattern<StringConst>
term_StringConst
(Pattern<? super Expression> superpattern, Pattern<? super String> p_value) term_Subst
(Pattern<? super Expression> superpattern, Pattern<? super Expression> p_on, Pattern<? super Reference> p_div, Pattern<? super Expression> p_mul) static Pattern<TagsRegExp>
term_TagsRegExp
(Pattern<? super XRegExp> superpattern, Pattern<? super Boolean> p_verbatim_input, Pattern<? super CheckedMap_RD<String, Definition>> p_localdefs) term_XRegExp
(Pattern<? super Definition> superpattern, Pattern<? super Expression> p_value, Pattern<? super CheckedMap_RD<Definition, Boolean>> p_xattributes, Pattern<? super Object> p_manglingRule)
-
Constructor Details
-
__Patterns
public __Patterns()
-
-
Method Details
-
cast_Seq
-
term_Seq
-
cast_StringConst
-
term_StringConst
public static Pattern<StringConst> term_StringConst(Pattern<? super Expression> superpattern, Pattern<? super String> p_value) -
cast_Pcdata
-
term_Pcdata
-
cast_CharExpr
-
term_CharExpr
-
cast_TagsRegExp
-
term_TagsRegExp
public static Pattern<TagsRegExp> term_TagsRegExp(Pattern<? super XRegExp> superpattern, Pattern<? super Boolean> p_verbatim_input, Pattern<? super CheckedMap_RD<String, Definition>> p_localdefs) -
cast_CharBinary
-
term_CharBinary
public static Pattern<CharBinary> term_CharBinary(Pattern<? super CharExpr> superpattern, Pattern<? super Expression> p_left, Pattern<? super Expression> p_right) -
cast_LocString
-
term_LocString
-
cast_AdditionalDocs
-
term_AdditionalDocs
public static Pattern<AdditionalDocs> term_AdditionalDocs(Pattern<Object> superpattern, Pattern<? super CheckedMap_RD<String, CheckedMap_RD<String, CheckedMap_RD<String, CheckedList<LocString>>>>> p_text) -
cast_None
-
term_None
-
cast_Expression
-
term_Expression
public static Pattern<Expression> term_Expression(Pattern<? super Expr0> superpattern, Pattern<? super Boolean> p_canProduceEpsilon, Pattern<? super CheckedMap_RD<String, Expression>> p_firsts, Pattern<? super CheckedMap_RD<String, Expression>> p_weakfirsts) -
cast_SourceItem
-
term_SourceItem
public static Pattern<SourceItem> term_SourceItem(Pattern<Object> superpattern, Pattern<? super SourceItem> p_context, Pattern<? super String> p_name, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super CheckedMap_RD<String, CheckedList<LocString>>> p_docu) -
cast_NamespaceDecl
-
term_NamespaceDecl
-
cast_Opt
-
term_Opt
-
cast_XRegExp
-
term_XRegExp
public static Pattern<XRegExp> term_XRegExp(Pattern<? super Definition> superpattern, Pattern<? super Expression> p_value, Pattern<? super CheckedMap_RD<Definition, Boolean>> p_xattributes, Pattern<? super Object> p_manglingRule) -
cast_CharsRegExp
-
term_CharsRegExp
public static Pattern<CharsRegExp> term_CharsRegExp(Pattern<? super XRegExp> superpattern, Pattern<? super Boolean> p_isDistributed, Pattern<? super Boolean> p_storeAsData, Pattern<? super Expression> p_linearContentModel, Pattern<? super Expression> p_dataContentModel) -
cast_CharCut
-
term_CharCut
-
cast_Insertion
-
term_Insertion
public static Pattern<Insertion> term_Insertion(Pattern<? super Expression> superpattern, Pattern<? super Expression> p_on, Pattern<? super Boolean> p_synthetic) -
cast_Reference
-
term_Reference
public static Pattern<Reference> term_Reference(Pattern<? super Expression> superpattern, Pattern<? super String> p_sourceText, Pattern<? super Boolean> p_isImplicit, Pattern<? super Definition> p_resolved) -
cast_GrUnary
-
term_GrUnary
public static Pattern<GrUnary> term_GrUnary(Pattern<? super Expression> superpattern, Pattern<? super Expression> p_on, Pattern<? super Boolean> p_istight) -
cast_GrMult
-
term_GrMult
public static Pattern<GrMult> term_GrMult(Pattern<? super Expression> superpattern, Pattern<? super CheckedList<Expression>> p_on) -
cast_CharJoin
-
term_CharJoin
-
cast_Plus
-
term_Plus
-
cast_ParseParticle
-
term_ParseParticle
public static Pattern<ParseParticle> term_ParseParticle(Pattern<? super Expression> superpattern, Pattern<? super String> p_ident, Pattern<? super Expression> p_on, Pattern<? super CharsRegExp> p_collector) -
cast_Definition
-
term_Definition
public static Pattern<Definition> term_Definition(Pattern<? super SourceItem> superpattern, Pattern<? super Boolean> p_isgeneric, Pattern<? super Boolean> p_ispublic, Pattern<? super Boolean> p_definedAsLocal, Pattern<? super String> p_postproc, Pattern<? super XmlKind> p_xml_kind, Pattern<? super String> p_xml_src_tag, Pattern<? super NamespaceName> p_xml_tag, Pattern<? super String> p_xml_value, Pattern<? super Boolean> p_xml_trimmed, Pattern<? super String> p_editpragmas) -
cast_Empty
-
term_Empty
-
cast_CharMinus
-
term_CharMinus
-
cast_Module
-
term_Module
public static Pattern<Module> term_Module(Pattern<? super SourceItem> superpattern, Pattern<? super CheckedMap_RD<String, Module>> p_modules, Pattern<? super CheckedMap_RD<String, ImportItem>> p_imports, Pattern<? super CheckedMap_RD<String, Definition>> p_definitions, Pattern<? super NamespaceName> p_defaultElNs, Pattern<? super CheckedList<NamespaceDecl>> p_namespaces, Pattern<? super Boolean> p_isLocal) -
cast_Expr0
-
term_Expr0
-
cast_Greedy
-
term_Greedy
-
cast_ResolvedModule
-
term_ResolvedModule
public static Pattern<ResolvedModule> term_ResolvedModule(Pattern<? super Module> superpattern, Pattern<? super Module> p_raw, Pattern<? super CheckedMap_RD<Definition, DefInstance>> p_defInstances, Pattern<? super CheckedMap_RD<String, Module>> p_rawModules) -
cast_CharSetConst
-
term_CharSetConst
-
cast_DefInstance
-
term_DefInstance
public static Pattern<DefInstance> term_DefInstance(Pattern<Object> superpattern, Pattern<? super Definition> p_raw, Pattern<? super String> p_representingKey, Pattern<? super CheckedSet<String>> p_importKeys) -
cast_Alt
-
term_Alt
-
cast_ImportItem
-
term_ImportItem
public static Pattern<ImportItem> term_ImportItem(Pattern<? super SourceItem> superpattern, Pattern<? super String> p_targetURN, Pattern<? super String> p_absolutePath, Pattern<? super Boolean> p_isgeneric, Pattern<? super CheckedMap_RD<String, CheckedMap_RD<String, Expression>>> p_localSubsts, Pattern<? super CheckedMap_RD<String, Expression>> p_globalSubsts) -
cast_CharRange
-
term_CharRange
-
cast_Star
-
term_Star
-
cast_Subst
-
term_Subst
public static Pattern<Subst> term_Subst(Pattern<? super Expression> superpattern, Pattern<? super Expression> p_on, Pattern<? super Reference> p_div, Pattern<? super Expression> p_mul) -
cast_Perm
-
term_Perm
public static Pattern<Perm> term_Perm(Pattern<? super GrMult> superpattern, Pattern<? super CheckedSet<Expression>> p_obligates) -
cast_Enumeration
-
term_Enumeration
public static Pattern<Enumeration> term_Enumeration(Pattern<? super Definition> superpattern, Pattern<? super CheckedList<String>> p_sourceOrder, Pattern<? super CheckedMap_RD<String, Integer>> p_items, Pattern<? super CheckedMap_RD<Integer, CheckedSet<String>>> p_reverse, Pattern<? super CheckedMap_RD<Integer, String>> p_repr, Pattern<? super EnumRep> p_xml_representation, Pattern<? super Boolean> p_xml_emptystructs, Pattern<? super CheckedMap_RD<Integer, CheckedMap_RD<String, CheckedList<LocString>>>> p_itemDocu)
-