satc
Class TokenContext

java.lang.Object
  |
  +--satc.TokenContext

public class TokenContext
extends java.lang.Object


Field Summary
protected  java.awt.Color[] tokenColors
          Cache of foreground colors to represent the various tokens.
protected  int tokenCount
           
protected  javax.swing.text.AttributeSet[] tokenStyles
           
 
Constructor Summary
TokenContext()
           
 
Method Summary
 java.awt.Color getColor(antlr.Token token)
           
 int getTokenCount()
           
protected  javax.swing.text.AttributeSet[] getTokenStyles()
           
 void setStyle(int tokenType, javax.swing.text.AttributeSet style)
           
 void setTokenCount(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenColors

protected java.awt.Color[] tokenColors
Cache of foreground colors to represent the various tokens.

tokenStyles

protected javax.swing.text.AttributeSet[] tokenStyles

tokenCount

protected int tokenCount
Constructor Detail

TokenContext

public TokenContext()
Method Detail

getColor

public java.awt.Color getColor(antlr.Token token)

setStyle

public void setStyle(int tokenType,
                     javax.swing.text.AttributeSet style)

getTokenCount

public int getTokenCount()

setTokenCount

public void setTokenCount(int count)

getTokenStyles

protected javax.swing.text.AttributeSet[] getTokenStyles()