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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class de.grogra.xl.query.Pattern
CONTEXT_MASK, INPUT_MASK, NODE_MASK, NULL_MATCHER, OUTPUT_MASK -
Constructor Summary
ConstructorsConstructorDescriptionCompoundPattern(Type[] types, boolean[] paramIsNode, boolean[] forceParamIsContext, Pattern[] predicates, boolean[] predIsContext, short[][] paramMappings, short[][] dependencies, short[][] foldings, short[] placeForLocals, 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.voidforceAllParamContext(boolean b) intintintgetParameterKind(int index) short[]This map contains the mapping between the signature variable to the declared QV place.Pattern[]final intbooleanprotected StringvoidsetPlaceForLocalMap(short[] m) voidMethods inherited from class de.grogra.xl.query.Pattern
addNestedParameter, getDeclaredParameterCount, getNestedParametersCount, getParameterCount, getParameterType, isCompound, setCompound, 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
public CompoundPattern(Type[] types, boolean[] paramIsNode, boolean[] forceParamIsContext, Pattern[] predicates, boolean[] predIsContext, short[][] paramMappings, short[][] dependencies, short[][] foldings, short[] placeForLocals, int in, int out, int direction, int predType, boolean optional, String continueLabel)
-
-
Method Details
-
write
- Throws:
IOException
-
getInParameter
public int getInParameter() -
getOutParameter
public int getOutParameter() -
getParameterKind
public int getParameterKind(int index) - Specified by:
getParameterKindin classPattern
-
createMatcher
public Pattern.Matcher createMatcher(Graph src, XBitSet providedConstants, IntList neededConstantsOut) Creates a Matcher object for this CompoundPattern instance.- Specified by:
createMatcherin 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:
isDeletingin classPattern
-
getTotalParameterCount
public final int getTotalParameterCount() -
forceAllParamContext
public void forceAllParamContext(boolean b) -
getPredicates
-
paramString
- Overrides:
paramStringin classPattern
-
getPlaceForLocalMap
public short[] getPlaceForLocalMap()This map contains the mapping between the signature variable to the declared QV place. The signature variables are assumed to be in order of their declaration in the method signature. Used for UserDefinedCompoundPattern. -
setPlaceForLocalMap
public void setPlaceForLocalMap(short[] m)
-