org.fife.ui.rsyntaxtextarea
Class AbstractJFlexCTokenMaker

java.lang.Object
  extended byorg.fife.ui.rsyntaxtextarea.TokenMakerBase
      extended byorg.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
          extended byorg.fife.ui.rsyntaxtextarea.AbstractJFlexCTokenMaker
All Implemented Interfaces:
TokenMaker
Direct Known Subclasses:
CPlusPlusTokenMaker, CSharpTokenMaker, CTokenMaker, GroovyTokenMaker, JavaTokenMaker, PerlTokenMaker, ScalaTokenMaker

public abstract class AbstractJFlexCTokenMaker
extends AbstractJFlexTokenMaker

Base class for JFlex-based token makers using C-style syntax. This class knows how to auto-indent after opening braces and parens.

Version:
1.0
Author:
Robert Futrell

Field Summary
 
Fields inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
currentToken, firstToken, offsetShift, previousToken, s, start
 
Constructor Summary
AbstractJFlexCTokenMaker()
           
 
Method Summary
 boolean getCurlyBracesDenoteCodeBlocks()
          Returns true always as C-style languages use curly braces to denote code blocks.
 boolean getShouldIndentNextLineAfter(Token t)
          The default implementation returns false always. Languages that wish to better support auto-indentation can override this method.
 
Methods inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
addNullToken, addToken, addToken, addToken, getLastTokenTypeOnLine, getLineCommentStartAndEnd, getMarkOccurrencesOfTokenType, isMarkupLanguage, resetTokenList, setWhitespaceVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fife.ui.rsyntaxtextarea.TokenMaker
getTokenList
 

Constructor Detail

AbstractJFlexCTokenMaker

public AbstractJFlexCTokenMaker()
Method Detail

getCurlyBracesDenoteCodeBlocks

public boolean getCurlyBracesDenoteCodeBlocks()
Returns true always as C-style languages use curly braces to denote code blocks.

Returns:
true always.

getShouldIndentNextLineAfter

public boolean getShouldIndentNextLineAfter(Token t)
The default implementation returns false always. Languages that wish to better support auto-indentation can override this method.

Parameters:
t - The token the previous line ends with.
Returns:
Whether the next line should be indented.