public class Match extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected EnumMultiMap<FlowElement> |
captureMap |
protected ElementGraph |
elementGraph |
protected java.util.Collection<FlowElement> |
foundElements |
protected java.util.Collection<Scope> |
foundScopes |
protected ExpressionGraph |
matchGraph |
protected java.util.Map<ElementExpression,FlowElement> |
vertexMapping |
Constructor and Description |
---|
Match(ExpressionGraph matchGraph,
ElementGraph elementGraph,
java.util.Map<ElementExpression,FlowElement> vertexMapping,
java.util.Collection<FlowElement> foundElements,
java.util.Collection<Scope> foundScopes) |
Match(ExpressionGraph matchGraph,
ElementGraph elementGraph,
java.util.Map<ElementExpression,FlowElement> vertexMapping,
java.util.Collection<FlowElement> foundElements,
java.util.Collection<Scope> foundScopes,
EnumMultiMap<FlowElement> captureMap) |
Modifier and Type | Method and Description |
---|---|
boolean |
foundMatch() |
java.util.Set<FlowElement> |
getCapturedElements(ElementCapture... captures) |
EnumMultiMap<FlowElement> |
getCaptureMap() |
ElementGraph |
getElementGraph() |
java.util.Collection<FlowElement> |
getFoundElements() |
java.util.Set<FlowElement> |
getIncludedElements() |
ElementSubGraph |
getMatchedGraph() |
ExpressionGraph |
getMatchGraph() |
java.util.Map<ElementExpression,FlowElement> |
getVertexMapping() |
java.lang.String |
toString() |
protected final ExpressionGraph matchGraph
protected final ElementGraph elementGraph
protected final java.util.Map<ElementExpression,FlowElement> vertexMapping
protected final java.util.Collection<FlowElement> foundElements
protected final java.util.Collection<Scope> foundScopes
protected EnumMultiMap<FlowElement> captureMap
public Match(ExpressionGraph matchGraph, ElementGraph elementGraph, java.util.Map<ElementExpression,FlowElement> vertexMapping, java.util.Collection<FlowElement> foundElements, java.util.Collection<Scope> foundScopes)
public Match(ExpressionGraph matchGraph, ElementGraph elementGraph, java.util.Map<ElementExpression,FlowElement> vertexMapping, java.util.Collection<FlowElement> foundElements, java.util.Collection<Scope> foundScopes, EnumMultiMap<FlowElement> captureMap)
public ElementGraph getElementGraph()
public ExpressionGraph getMatchGraph()
public boolean foundMatch()
public java.util.Map<ElementExpression,FlowElement> getVertexMapping()
public java.util.Collection<FlowElement> getFoundElements()
public ElementSubGraph getMatchedGraph()
public java.util.Set<FlowElement> getIncludedElements()
public java.util.Set<FlowElement> getCapturedElements(ElementCapture... captures)
public EnumMultiMap<FlowElement> getCaptureMap()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.