org.fife.ui.rsyntaxtextarea.modes
Class AbstractMarkupTokenMaker

java.lang.Object
  extended byorg.fife.ui.rsyntaxtextarea.TokenMakerBase
      extended byorg.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
          extended byorg.fife.ui.rsyntaxtextarea.modes.AbstractMarkupTokenMaker
All Implemented Interfaces:
TokenMaker
Direct Known Subclasses:
BBCodeTokenMaker, HTMLTokenMaker, JSPTokenMaker, PHPTokenMaker, XMLTokenMaker

public abstract class AbstractMarkupTokenMaker
extends AbstractJFlexTokenMaker

Base class for token makers for markup languages.

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
AbstractMarkupTokenMaker()
           
 
Method Summary
abstract  boolean getCompleteCloseTags()
          Returns whether markup close tags should be completed.
 java.lang.String[] getLineCommentStartAndEnd()
          Returns the text to place at the beginning and end of a line to "comment" it in a this programming language.
 boolean isMarkupLanguage()
          Overridden to return true.
 
Methods inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
addNullToken, addToken, addToken, addToken, getCurlyBracesDenoteCodeBlocks, getLastTokenTypeOnLine, getMarkOccurrencesOfTokenType, getShouldIndentNextLineAfter, 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

AbstractMarkupTokenMaker

public AbstractMarkupTokenMaker()
Method Detail

getCompleteCloseTags

public abstract boolean getCompleteCloseTags()
Returns whether markup close tags should be completed.

Returns:
Whether closing markup tags are to be completed.

getLineCommentStartAndEnd

public java.lang.String[] getLineCommentStartAndEnd()
Returns the text to place at the beginning and end of a line to "comment" it in a this programming language.

Returns:
The start and end strings to add to a line to "comment" it out.

isMarkupLanguage

public final boolean isMarkupLanguage()
Overridden to return true.

Returns:
true always.