public class SequenceAnalyzer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
_chunkTypeChildren
tracks chunktypes (key) and all their children
|
protected java.util.Map<java.lang.String,org.antlr.runtime.tree.CommonTree> |
_chunkTypes |
protected java.util.Collection<IBufferEndStateComputer> |
_endStateComputers |
protected java.util.Collection<IRelationshipComputer> |
_relationshipComputers |
protected java.util.Map<org.antlr.runtime.tree.CommonTree,ProductionRelationships> |
_relationships |
Constructor and Description |
---|
SequenceAnalyzer() |
Modifier and Type | Method and Description |
---|---|
void |
add(IBufferEndStateComputer computer) |
void |
add(IRelationshipComputer computer) |
void |
addChunkType(org.antlr.runtime.tree.CommonTree chunkType)
we track all the chunktypes and their children so that we can check
chunktype conditions
|
void |
addProduction(org.antlr.runtime.tree.CommonTree production) |
protected BufferEndStates |
computeBufferEndStates(org.antlr.runtime.tree.CommonTree production) |
protected java.util.Collection<IRelationship> |
computeRelationship(org.antlr.runtime.tree.CommonTree head,
org.antlr.runtime.tree.CommonTree tail) |
java.util.Map<org.antlr.runtime.tree.CommonTree,ProductionRelationships> |
getAllRelationships() |
java.util.Collection<org.antlr.runtime.tree.CommonTree> |
getChunkTypeSlots(java.lang.String chunkTypeName) |
ProductionRelationships |
getRelationships(org.antlr.runtime.tree.CommonTree production) |
void |
reset() |
protected java.util.Map<java.lang.String,java.util.Set<java.lang.String>> _chunkTypeChildren
protected java.util.Map<java.lang.String,org.antlr.runtime.tree.CommonTree> _chunkTypes
protected java.util.Map<org.antlr.runtime.tree.CommonTree,ProductionRelationships> _relationships
protected java.util.Collection<IBufferEndStateComputer> _endStateComputers
protected java.util.Collection<IRelationshipComputer> _relationshipComputers
public void reset()
public void add(IBufferEndStateComputer computer)
public void add(IRelationshipComputer computer)
public ProductionRelationships getRelationships(org.antlr.runtime.tree.CommonTree production)
public java.util.Map<org.antlr.runtime.tree.CommonTree,ProductionRelationships> getAllRelationships()
public void addChunkType(org.antlr.runtime.tree.CommonTree chunkType)
chunkType
- public void addProduction(org.antlr.runtime.tree.CommonTree production)
protected BufferEndStates computeBufferEndStates(org.antlr.runtime.tree.CommonTree production)
protected java.util.Collection<IRelationship> computeRelationship(org.antlr.runtime.tree.CommonTree head, org.antlr.runtime.tree.CommonTree tail)
public java.util.Collection<org.antlr.runtime.tree.CommonTree> getChunkTypeSlots(java.lang.String chunkTypeName)