net.sourceforge.squirrel_sql.plugins.syntax.rsyntax
Class SquirrelTokenMarker

java.lang.Object
  extended by org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
      extended by net.sourceforge.squirrel_sql.plugins.syntax.rsyntax.SquirrelTokenMakerBase
          extended by net.sourceforge.squirrel_sql.plugins.syntax.rsyntax.SquirrelTokenMarker
All Implemented Interfaces:
org.fife.ui.rsyntaxtextarea.TokenMaker

public class SquirrelTokenMarker
extends SquirrelTokenMakerBase


Field Summary
protected  org.fife.ui.rsyntaxtextarea.Token currentToken
           
protected  org.fife.ui.rsyntaxtextarea.Token firstToken
           
protected  org.fife.ui.rsyntaxtextarea.Token previousToken
           
static int TOKEN_IDENTIFIER_COLUMN
           
static int TOKEN_IDENTIFIER_DATA_TYPE
           
static int TOKEN_IDENTIFIER_FUNCTION
           
static int TOKEN_IDENTIFIER_STATEMENT_SEPARATOR
           
static int TOKEN_IDENTIFIER_TABLE
           
 
Fields inherited from class net.sourceforge.squirrel_sql.plugins.syntax.rsyntax.SquirrelTokenMakerBase
CHAR, MLC, STRING, YYEOF, YYINITIAL
 
Fields inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
offsetShift, s, start
 
Constructor Summary
SquirrelTokenMarker(SquirrelRSyntaxTextArea squirrelRSyntaxTextArea, ISyntaxHighlightTokenMatcher syntaxHighlightTokenMatcher)
           
 
Method Summary
 void addNullToken()
           
 void addToken(char[] array, int start, int end, int tokenType, int startOffset, boolean hyperlink)
           
 void addToken(Segment arg0, int arg1, int arg2, int arg3, int arg4)
           
 boolean getCurlyBracesDenoteCodeBlocks()
           
 int getLastTokenTypeOnLine(Segment arg0, int arg1)
           
 boolean getMarkOccurrencesOfTokenType(int arg0)
           
static int getNumTokenTypes()
           
 boolean getShouldIndentNextLineAfter(org.fife.ui.rsyntaxtextarea.Token arg0)
           
 boolean isMarkupLanguage()
           
protected  void resetTokenList()
           
 void setWhitespaceVisible(boolean arg0, org.fife.ui.rsyntaxtextarea.RSyntaxTextArea arg1)
           
 
Methods inherited from class net.sourceforge.squirrel_sql.plugins.syntax.rsyntax.SquirrelTokenMakerBase
addToken, getLineCommentStartAndEnd, getTokenList, yybegin, yycharat, yyclose, yylength, yylex, yypushback, yyreset, yystate, yytext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKEN_IDENTIFIER_TABLE

public static final int TOKEN_IDENTIFIER_TABLE

TOKEN_IDENTIFIER_DATA_TYPE

public static final int TOKEN_IDENTIFIER_DATA_TYPE

TOKEN_IDENTIFIER_COLUMN

public static final int TOKEN_IDENTIFIER_COLUMN

TOKEN_IDENTIFIER_FUNCTION

public static final int TOKEN_IDENTIFIER_FUNCTION

TOKEN_IDENTIFIER_STATEMENT_SEPARATOR

public static final int TOKEN_IDENTIFIER_STATEMENT_SEPARATOR

firstToken

protected org.fife.ui.rsyntaxtextarea.Token firstToken

currentToken

protected org.fife.ui.rsyntaxtextarea.Token currentToken

previousToken

protected org.fife.ui.rsyntaxtextarea.Token previousToken
Constructor Detail

SquirrelTokenMarker

public SquirrelTokenMarker(SquirrelRSyntaxTextArea squirrelRSyntaxTextArea,
                           ISyntaxHighlightTokenMatcher syntaxHighlightTokenMatcher)
Method Detail

getNumTokenTypes

public static int getNumTokenTypes()

addToken

public void addToken(char[] array,
                     int start,
                     int end,
                     int tokenType,
                     int startOffset,
                     boolean hyperlink)

addNullToken

public void addNullToken()
Specified by:
addNullToken in interface org.fife.ui.rsyntaxtextarea.TokenMaker

addToken

public void addToken(Segment arg0,
                     int arg1,
                     int arg2,
                     int arg3,
                     int arg4)

getCurlyBracesDenoteCodeBlocks

public boolean getCurlyBracesDenoteCodeBlocks()
Specified by:
getCurlyBracesDenoteCodeBlocks in interface org.fife.ui.rsyntaxtextarea.TokenMaker

getLastTokenTypeOnLine

public int getLastTokenTypeOnLine(Segment arg0,
                                  int arg1)
Specified by:
getLastTokenTypeOnLine in interface org.fife.ui.rsyntaxtextarea.TokenMaker

getMarkOccurrencesOfTokenType

public boolean getMarkOccurrencesOfTokenType(int arg0)
Specified by:
getMarkOccurrencesOfTokenType in interface org.fife.ui.rsyntaxtextarea.TokenMaker

getShouldIndentNextLineAfter

public boolean getShouldIndentNextLineAfter(org.fife.ui.rsyntaxtextarea.Token arg0)
Specified by:
getShouldIndentNextLineAfter in interface org.fife.ui.rsyntaxtextarea.TokenMaker

isMarkupLanguage

public boolean isMarkupLanguage()
Specified by:
isMarkupLanguage in interface org.fife.ui.rsyntaxtextarea.TokenMaker

resetTokenList

protected void resetTokenList()

setWhitespaceVisible

public void setWhitespaceVisible(boolean arg0,
                                 org.fife.ui.rsyntaxtextarea.RSyntaxTextArea arg1)
Specified by:
setWhitespaceVisible in interface org.fife.ui.rsyntaxtextarea.TokenMaker


Copyright © 2001-2011. All Rights Reserved.