java.lang.Object
de.grogra.xl.query.Pattern
de.grogra.xl.query.BuiltInPattern
de.grogra.xl.query.CompoundPattern
- All Implemented Interfaces:
BytecodeSerialization.Serializable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class de.grogra.xl.query.Pattern
CONTEXT_MASK, INPUT_MASK, NODE_MASK, NULL_MATCHER, OUTPUT_MASK
-
Constructor Summary
ConstructorDescriptionCompoundPattern
(Type[] types, boolean[] paramIsNode, boolean[] forceParamIsContext, Pattern[] predicates, boolean[] predIsContext, short[][] paramMappings, short[][] dependencies, short[][] foldings, int in, int out, int direction, int predType, boolean optional, String continueLabel) -
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher
(Graph src, XBitSet providedConstants, IntList neededConstantsOut) Creates a Matcher object for this CompoundPattern instance.int
int
int
getParameterKind
(int index) boolean
protected String
void
Methods inherited from class de.grogra.xl.query.Pattern
getDeclaredParameterCount, getParameterCount, getParameterType, toString
-
Field Details
-
SIMPLE
public static final int SIMPLE- See Also:
-
ATOMIC
public static final int ATOMIC- See Also:
-
BREAKING
public static final int BREAKING- See Also:
-
-
Constructor Details
-
CompoundPattern
-
-
Method Details
-
write
- Throws:
IOException
-
getInParameter
public int getInParameter() -
getOutParameter
public int getOutParameter() -
getParameterKind
public int getParameterKind(int index) - Specified by:
getParameterKind
in classPattern
-
createMatcher
public Pattern.Matcher createMatcher(Graph src, XBitSet providedConstants, IntList neededConstantsOut) Creates a Matcher object for this CompoundPattern instance.- Specified by:
createMatcher
in classPattern
- Parameters:
src
- the runtime graph in which the created matcher will search for matchesprovidedConstants
- specifies which parameters are already boundedneededConstantsOut
- specifies which parameters need to be bounded- Returns:
- Matcher object that can find matches in the graph
-
isDeleting
public boolean isDeleting()- Overrides:
isDeleting
in classPattern
-
paramString
- Overrides:
paramString
in classPattern
-