de.hunsicker.jalopy.swing.syntax
Class JavaTokenMarker

java.lang.Object
  |
  +--de.hunsicker.jalopy.swing.syntax.TokenMarker
        |
        +--de.hunsicker.jalopy.swing.syntax.JavaTokenMarker

public final class JavaTokenMarker
extends TokenMarker

Java token marker.

Version:
$Id: JavaTokenMarker.java,v 1.3.2.2 2005/02/18 21:50:20 notzippy Exp $
Author:
Slava Pestov

Nested Class Summary
 
Nested classes inherited from class de.hunsicker.jalopy.swing.syntax.TokenMarker
TokenMarker.LineInfo
 
Field Summary
 
Fields inherited from class de.hunsicker.jalopy.swing.syntax.TokenMarker
firstToken, lastToken, length, lineInfo, nextLineRequested
 
Constructor Summary
JavaTokenMarker()
          Creates a new JavaTokenMarker object.
JavaTokenMarker(boolean cpp, KeywordMap keywords)
          Creates a new JavaTokenMarker object.
 
Method Summary
static KeywordMap getKeywords()
          DOCUMENT ME!
 byte markTokensImpl(byte token, javax.swing.text.Segment line, int lineIndex)
          Marks the token
 
Methods inherited from class de.hunsicker.jalopy.swing.syntax.TokenMarker
addToken, deleteLines, ensureCapacity, insertLines, isNextLineRequested, markTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaTokenMarker

public JavaTokenMarker()
Creates a new JavaTokenMarker object.


JavaTokenMarker

public JavaTokenMarker(boolean cpp,
                       KeywordMap keywords)
Creates a new JavaTokenMarker object.

Parameters:
cpp - DOCUMENT ME!
keywords - DOCUMENT ME!
Method Detail

getKeywords

public static KeywordMap getKeywords()
DOCUMENT ME!

Returns:
DOCUMENT ME!

markTokensImpl

public byte markTokensImpl(byte token,
                           javax.swing.text.Segment line,
                           int lineIndex)
Marks the token

Specified by:
markTokensImpl in class TokenMarker
Parameters:
token - The token to mark
line - The line it is on
lineIndex - The index of the line
Returns:
DOCUMENT ME!


Copyright © 1997-2005 Jalopy. All Rights Reserved.