org.jactr.tools.analysis.production.endstates
Class BufferEndState

java.lang.Object
  extended by org.jactr.tools.analysis.production.endstates.BufferEndState
Direct Known Subclasses:
SimpleBufferEndState

public class BufferEndState
extends java.lang.Object


Field Summary
static org.antlr.runtime.tree.CommonTree BUSY
           
static org.antlr.runtime.tree.CommonTree EMPTY
           
static org.antlr.runtime.tree.CommonTree ERROR
           
static org.antlr.runtime.tree.CommonTree FALSE
           
static org.antlr.runtime.tree.CommonTree FREE
           
static org.antlr.runtime.tree.CommonTree FULL
           
static org.antlr.runtime.tree.CommonTree NIL
           
static org.antlr.runtime.tree.CommonTree NULL
           
static org.antlr.runtime.tree.CommonTree TRUE
           
 
Constructor Summary
BufferEndState(java.lang.String bufferName)
           
BufferEndState(java.lang.String bufferName, java.lang.String conditionedOn)
           
 
Method Summary
 void addSlotHypothesis(org.antlr.runtime.tree.CommonTree slot)
           
 int computeRelationship(org.antlr.runtime.tree.CommonTree conditionOrQuery)
          compute the relationship between the conditionOrQueries slots and this end state..
 java.lang.String getBufferName()
           
 java.lang.String getConditionedOn()
           
static org.jactr.io.antlr3.misc.ASTSupport getSupport()
           
 boolean isEmpty()
           
 boolean isQuery()
           
 void setIsQuery(boolean isQuery)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final org.antlr.runtime.tree.CommonTree NULL

NIL

public static final org.antlr.runtime.tree.CommonTree NIL

TRUE

public static final org.antlr.runtime.tree.CommonTree TRUE

FALSE

public static final org.antlr.runtime.tree.CommonTree FALSE

EMPTY

public static final org.antlr.runtime.tree.CommonTree EMPTY

FULL

public static final org.antlr.runtime.tree.CommonTree FULL

FREE

public static final org.antlr.runtime.tree.CommonTree FREE

BUSY

public static final org.antlr.runtime.tree.CommonTree BUSY

ERROR

public static final org.antlr.runtime.tree.CommonTree ERROR
Constructor Detail

BufferEndState

public BufferEndState(java.lang.String bufferName,
                      java.lang.String conditionedOn)

BufferEndState

public BufferEndState(java.lang.String bufferName)
Method Detail

getSupport

public static org.jactr.io.antlr3.misc.ASTSupport getSupport()

isQuery

public boolean isQuery()

setIsQuery

public void setIsQuery(boolean isQuery)

getConditionedOn

public java.lang.String getConditionedOn()

getBufferName

public java.lang.String getBufferName()

isEmpty

public boolean isEmpty()

addSlotHypothesis

public void addSlotHypothesis(org.antlr.runtime.tree.CommonTree slot)

computeRelationship

public int computeRelationship(org.antlr.runtime.tree.CommonTree conditionOrQuery)
compute the relationship between the conditionOrQueries slots and this end state.. note: we currently ignore chunktype..

Parameters:
conditionOrQuery -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object