Module xl.compiler

Class PatternBuilder

java.lang.Object
de.grogra.xl.compiler.pattern.PatternBuilder

public class PatternBuilder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getQueryState

      public Local getQueryState()
    • enclosesOrEquals

      public boolean enclosesOrEquals(PatternBuilder c)
    • allowOpenEnds

      public void allowOpenEnds()
    • getModel

      public CompiletimeModel getModel()
    • getScope

      public BlockScope getScope()
    • declareAuxVariable

      public Local declareAuxVariable(Type type)
    • declareWrapper

      public Local declareWrapper(Local wrapped, Type type, antlr.collections.AST pos)
    • declareVariable

      public Local declareVariable(antlr.collections.AST name, Type type)
    • getDeclaredVariables

      public Local[] getDeclaredVariables()
    • createCompositePattern

      public CompositeData createCompositePattern()
    • addNodePattern

      public final SimplePatternData addNodePattern(antlr.collections.AST label, BuiltInPattern pred, ArgumentDescription[] args, antlr.collections.AST pos)
    • addNodePattern

      public final SimplePatternData addNodePattern(antlr.collections.AST label, PatternWrapper pred, ArgumentDescription[] args, antlr.collections.AST pos)
    • addRelationPattern

      public final SimplePatternData addRelationPattern(antlr.collections.AST label, BuiltInPattern pred, ArgumentDescription[] args, boolean swapInOut, antlr.collections.AST pos)
    • addRelationPattern

      public final SimplePatternData addRelationPattern(antlr.collections.AST label, PatternWrapper pred, ArgumentDescription[] args, boolean swapInOut, antlr.collections.AST pos)
    • addPattern

      public final SimplePatternData addPattern(antlr.collections.AST label, Pattern pred, ArgumentDescription[] args, antlr.collections.AST pos)
    • addPattern

      protected final SimplePatternData addPattern(antlr.collections.AST label, Pattern pred, ArgumentDescription[] args, antlr.collections.AST pos, boolean join)
    • getLastNodeType

      public Type getLastNodeType()
    • addVariableReference

      public void addVariableReference(Local term, antlr.collections.AST pos)
    • addTraversal

      public TraversalData addTraversal(antlr.collections.AST label, PatternBuilder child, EdgeDirection direction, Expression min, Expression max, boolean addFolding, antlr.collections.AST pos)
    • addComposite

      public CompositeData addComposite(antlr.collections.AST label, PatternBuilder child, EdgeDirection direction, boolean optional, antlr.collections.AST pos)
    • addAny

      public void addAny(antlr.collections.AST label, antlr.collections.AST pos)
    • addSeparation

      public void addSeparation(antlr.collections.AST pos)
    • join

      protected void join(int edgeType, Place in, Place out, antlr.collections.AST pos)
    • addStandardEdge

      public void addStandardEdge(antlr.collections.AST label, EdgeDirection direction, int edgeType, antlr.collections.AST pos)
    • addConstantEdge

      public SimplePatternData addConstantEdge(antlr.collections.AST label, EdgeDirection direction, Type edgeClass, Serializable edge, antlr.collections.AST pos)
    • addEdge

      public void addEdge(antlr.collections.AST label, EdgeDirection direction, Expression term, antlr.collections.AST pos)
    • addEdgePattern

      public void addEdgePattern(antlr.collections.AST label, PatternWrapper edge, ArgumentDescription[] args, EdgeDirection direction, antlr.collections.AST pos)
    • addType

      public void addType(antlr.collections.AST label, Type type, antlr.collections.AST pos)
    • addWrappedType

      public void addWrappedType(antlr.collections.AST label, Type type, Expression wrapped, antlr.collections.AST pos)
    • addCondition

      public void addCondition(antlr.collections.AST label, Expression expr, antlr.collections.AST pos)
    • addGuard

      public void addGuard(antlr.collections.AST label, Expression guard, antlr.collections.AST pos)
    • createArgument

      public static final Expression createArgument(Type type)
    • createTargetTypeArgument

      public static final Expression createTargetTypeArgument()
    • declareRoutine

      protected MethodScope declareRoutine(Expression expr, ObjectList termLocals, HashSet used, HashSet assigned)
    • addRelation

      public void addRelation(antlr.collections.AST label, Expression expr, boolean swapInOut, antlr.collections.AST pos)
    • addBlock

      public void addBlock(Expression block, antlr.collections.AST pos)
    • addPathExpression

      public void addPathExpression(antlr.collections.AST label, Expression expr, boolean swapInOut, antlr.collections.AST pos)
    • addExpression

      public void addExpression(antlr.collections.AST label, Expression expr, antlr.collections.AST pos)
    • addFolding

      public void addFolding(antlr.collections.AST id)
    • beginTree

      public void beginTree(antlr.collections.AST pos)
    • endTree

      public void endTree(antlr.collections.AST pos)
    • beginContext

      public void beginContext(antlr.collections.AST pos)
    • endContext

      public void endContext(antlr.collections.AST pos)