java.lang.Object
de.grogra.xl.query.Pattern
de.grogra.xl.query.BuiltInPattern
de.grogra.xl.query.EdgePattern
- All Implemented Interfaces:
BytecodeSerialization.Serializable
- Direct Known Subclasses:
SpacingPattern
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.xl.query.Pattern
Pattern.Matcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Any edge.static final int
Branch edge.static final int
Refinement edge.static final int
Successor edge.Fields inherited from class de.grogra.xl.query.Pattern
CONTEXT_MASK, INPUT_MASK, NODE_MASK, NULL_MATCHER, OUTPUT_MASK
-
Constructor Summary
ConstructorsConstructorDescriptionEdgePattern
(Type nodeType, Type edgeType, int direction) EdgePattern
(Type nodeType, Type edgeType, Serializable edge, int direction) -
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher
(Graph src, XBitSet providedConstants, IntList neededConstantsOut) int
int
getParameterKind
(int index) int
boolean
boolean
void
Methods inherited from class de.grogra.xl.query.Pattern
getDeclaredParameterCount, getParameterCount, getParameterType, toString
-
Field Details
-
ANY_EDGE
public static final int ANY_EDGEAny edge. Thisint
-value represents an edge of any type within the context ofEdgePattern
.- See Also:
-
SUCCESSOR_EDGE
public static final int SUCCESSOR_EDGESuccessor edge. Thisint
-value represents an edge of type successor within the context ofEdgePattern
.- See Also:
-
BRANCH_EDGE
public static final int BRANCH_EDGEBranch edge. Thisint
-value represents an edge of type branch within the context ofEdgePattern
.- See Also:
-
REFINEMENT_EDGE
public static final int REFINEMENT_EDGERefinement edge. Thisint
-value represents an edge of type refinement within the context ofEdgePattern
.- See Also:
-
-
Constructor Details
-
EdgePattern
-
EdgePattern
-
-
Method Details
-
write
- Throws:
IOException
-
createMatcher
public Pattern.Matcher createMatcher(Graph src, XBitSet providedConstants, IntList neededConstantsOut) - Specified by:
createMatcher
in classPattern
-
getPatternIndex
public int getPatternIndex() -
getMatchIndex
public int getMatchIndex() -
getPattern
-
needsBothDirections
public boolean needsBothDirections() -
getParameterKind
public int getParameterKind(int index) - Specified by:
getParameterKind
in classPattern
-
isDeleting
public boolean isDeleting()- Overrides:
isDeleting
in classPattern
-
paramString
- Overrides:
paramString
in classPattern
-