Module xl

Class CompoundPattern

All Implemented Interfaces:
BytecodeSerialization.Serializable

public final class CompoundPattern extends BuiltInPattern
  • Field Details

  • 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

      public void write(BytecodeSerialization out) throws IOException
      Throws:
      IOException
    • getInParameter

      public int getInParameter()
    • getOutParameter

      public int getOutParameter()
    • getParameterKind

      public int getParameterKind(int index)
      Specified by:
      getParameterKind in class Pattern
    • createMatcher

      public Pattern.Matcher createMatcher(Graph src, XBitSet providedConstants, IntList neededConstantsOut)
      Creates a Matcher object for this CompoundPattern instance.
      Specified by:
      createMatcher in class Pattern
      Parameters:
      src - the runtime graph in which the created matcher will search for matches
      providedConstants - specifies which parameters are already bounded
      neededConstantsOut - specifies which parameters need to be bounded
      Returns:
      Matcher object that can find matches in the graph
    • isDeleting

      public boolean isDeleting()
      Overrides:
      isDeleting in class Pattern
    • getTotalParameterCount

      public final int getTotalParameterCount()
    • forceAllParamContext

      public void forceAllParamContext(boolean b)
    • getPredicates

      public Pattern[] getPredicates()
    • paramString

      protected String paramString()
      Overrides:
      paramString in class Pattern
    • 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)