A C D G I K L M N O P R S T U

A

AbstractLexerCallback - class satc.AbstractLexerCallback.
Abstract implementation of the LexerCallback interface.
AbstractLexerCallback() - Constructor for class satc.AbstractLexerCallback
 
accept(File) - Method in class satc.SyntaxInfo
FileFilter method.
action(Token) - Method in interface satc.MultiStateLexer.LexerCallback
The action to be performed for each new token.
action(Token) - Method in class satc.AbstractLexerCallback
The action to be performed for each new token.
addStateLexer(CharScanner, String) - Method in class satc.MultiStateLexer
Adds a new state to the lexer.

C

changedUpdate(DocumentEvent) - Method in class satc.ParserDocumentListener
Gives notification that an attribute or set of attributes changed.
changedUpdate(DocumentEvent) - Method in class satc.LexerDocumentListener
Gives notification that an attribute or set of attributes changed.
changedUpdate(DocumentEvent, Shape, ViewFactory) - Method in class satc.swing.SyntaxView
On a document change event we simply redraw the entire text area.
charStyle - Static variable in class satc.Styles
 
commentStyle - Static variable in class satc.Styles
 
constStyle - Static variable in class satc.Styles
 
create(Element) - Method in class satc.swing.SyntaxTextAreaUI
Sets the syntax mode for this UI.
createDefaultDocument() - Method in class satc.swing.SyntaxEditorKit
Creates an uninitialized text storage model that is appropriate for this type of editor.
createEditorKit(String) - Static method in class satc.SyntaxFactory
Creates a new EditorKit for a syntax mode.
createLexer(String) - Static method in class satc.SyntaxFactory
Creates a new MultiStateLexer for a syntax mode.
createLexer(String, InputStream) - Static method in class satc.SyntaxFactory
Creates a new MultiStateLexer for a syntax mode.
createParser(String, TokenStream) - Static method in class satc.SyntaxFactory
Creates a new parser for a syntax mode.
createTextArea(String) - Static method in class satc.Syntax
Returns a new textArea with syntax mode syntaxName.
createTokenContext(String) - Static method in class satc.SyntaxFactory
Creates a new TokenContext for a syntax mode.
createView(Element) - Method in class satc.swing.SyntaxEditorKit
ViewFactory method.

D

defaultStyle - Static variable in class satc.Styles
 
directiveStyle - Static variable in class satc.Styles
 
DocumentStream - class satc.DocumentStream.
Class to provide InputStream functionality from a portion of a Document.
DocumentStream() - Constructor for class satc.DocumentStream
 
drawLine(int, Graphics, int, int) - Method in class satc.swing.SyntaxView
Draw a new line with syntax highlighting.
drawSegment(Segment, Graphics, int, int, int) - Method in class satc.swing.SyntaxView
 
drawUnselectedSegment(Segment, Graphics, int, int, int) - Method in class satc.swing.SyntaxView
 

G

getColor(Token) - Method in class satc.TokenContext
 
getContentType() - Method in class satc.swing.SyntaxEditorKit
Gets the MIME type of the data that this kit represents support for.
getContentType(String) - Static method in class satc.Syntax
Translates the syntax mode name to a MIME type.
getCurrentState() - Method in class satc.MultiStateLexer
Returns the name of the current state of the lexer.
getDefaultExtension() - Method in class satc.SyntaxInfo
Returns the default extension for this syntax mode.
getDefaultSyntaxInfo() - Static method in class satc.SyntaxInfo
Documents with unknown syntax are opened as plain text.
getDescription() - Method in class satc.SyntaxInfo
Returns a textual description of this syntax mode.
getEditorKit(JTextComponent) - Method in class satc.swing.SyntaxTextAreaUI
Fetches the EditorKit for the UI.
getName() - Method in class satc.SyntaxInfo
Returns the internal name for this syntax mode.
getProperties(String) - Static method in class satc.SettingsReader
 
getTabSize() - Method in class satc.swing.SyntaxView
 
getTokenCount() - Method in class satc.TokenContext
 
getTokenStyles() - Method in class satc.TokenContext
 
getType() - Method in class satc.SyntaxInfo
Returns the MIME type.

I

index - Variable in class satc.swing.SwingDocumentStream
 
inputState - Variable in class satc.MultiStateLexer
 
inputStream - Variable in class satc.MultiStateLexer
 
insertUpdate(DocumentEvent) - Method in class satc.ParserDocumentListener
Gives notification that there was an insert into the document.
insertUpdate(DocumentEvent) - Method in class satc.LexerDocumentListener
Gives notification that there was an insert into the document.
insertUpdate(DocumentEvent, Shape, ViewFactory) - Method in class satc.swing.SyntaxView
On a document change event we simply redraw the entire text area.
installEditorKit(Document) - Method in class satc.swing.SyntaxEditorKit
Install this editor kit into a document.
installUI(JComponent) - Method in class satc.swing.SyntaxTextAreaUI
 
invalidStyle - Static variable in class satc.Styles
 
isEnabled() - Method in interface satc.MultiStateLexer.LexerCallback
Returns true if this action is currently enabled.
isEnabled() - Method in class satc.AbstractLexerCallback
Returns true if this action is currently enabled.

K

keywordStyle - Static variable in class satc.Styles
 

L

labelStyle - Static variable in class satc.Styles
 
lexer - Variable in class satc.LexerDocumentListener
 
LexerDocumentListener - class satc.LexerDocumentListener.
This class listens for changes in the document and rescan the affected range.
LexerDocumentListener() - Constructor for class satc.LexerDocumentListener
 
load() - Method in class satc.SettingsReader
Reads the syntax modes from a property file and creates a SyntaxInfo structure for each of them.

M

MultiStateLexer - class satc.MultiStateLexer.
A Lexer using "states" to support multiple-line tokens.
MultiStateLexer.LexerCallback - interface satc.MultiStateLexer.LexerCallback.
Interface for a callback lexer action.
MultiStateLexer() - Constructor for class satc.MultiStateLexer
Creates a new multiple state lexer.
MultiStateLexer(InputStream) - Constructor for class satc.MultiStateLexer
Creates a new multiple state lexer.

N

nextToken() - Method in class satc.MultiStateLexer
Fetches the next token.
numberStyle - Static variable in class satc.Styles
 

O

operatorStyle - Static variable in class satc.Styles
 
optionStyle - Static variable in class satc.Styles
 

P

p0 - Variable in class satc.swing.SwingDocumentStream
 
p1 - Variable in class satc.swing.SwingDocumentStream
 
paranthesysStyle - Static variable in class satc.Styles
 
parseOnTheFly - Static variable in class satc.Syntax
Flag that enables the continuous reparsing of the text as it is typed.
ParserDocumentListener - class satc.ParserDocumentListener.
This class listens for changes in the document and updates the AST.
ParserDocumentListener() - Constructor for class satc.ParserDocumentListener
 
pos - Variable in class satc.swing.SwingDocumentStream
 

R

read() - Method in class satc.DocumentStream
Reads the next byte of data from this input stream.
read() - Method in class satc.swing.SwingDocumentStream
Reads the next byte of data from this input stream.
read(JTextArea, File) - Static method in class satc.Syntax
Load a textArea from a file.
read(JTextArea, Reader, String) - Static method in class satc.Syntax
Load a textArea from a Reader.
register(SyntaxInfo) - Static method in class satc.Syntax
Register a new syntax mode.
removeUpdate(DocumentEvent) - Method in class satc.ParserDocumentListener
Gives notification that a portion of the document has been removed.
removeUpdate(DocumentEvent) - Method in class satc.LexerDocumentListener
Gives notification that a portion of the document has been removed.
removeUpdate(DocumentEvent, Shape, ViewFactory) - Method in class satc.swing.SyntaxView
On a document change event we simply redraw the entire text area.
reset() - Method in class satc.DocumentStream
 
reset() - Method in class satc.MultiStateLexer
This method resets the lexer.
reset() - Method in class satc.swing.SwingDocumentStream
Reset the document stream.

S

satc - package satc
 
satc.swing - package satc.swing
 
scan(MultiStateLexer.LexerCallback) - Method in class satc.MultiStateLexer
Scan the current range of the input executing action on each token.
scanLine(Document, int, MultiStateLexer, MultiStateLexer.LexerCallback) - Method in class satc.LexerDocumentListener
 
segment - Variable in class satc.swing.SwingDocumentStream
 
selector - Variable in class satc.MultiStateLexer
 
setDocument(Object) - Method in class satc.DocumentStream
 
setDocument(Object) - Method in class satc.swing.SwingDocumentStream
 
setEnabled(boolean) - Method in interface satc.MultiStateLexer.LexerCallback
Enable/disable this action.
setEnabled(boolean) - Method in class satc.AbstractLexerCallback
Enable/disable this action.
setFileFilters(JFileChooser) - Static method in class satc.Syntax
Installs file filters for all registered syntax modes.
setLexerLine(Document, int, MultiStateLexer) - Method in class satc.LexerDocumentListener
Restricts the lexer scan range to the specified line.
setRange(int, int) - Method in class satc.DocumentStream
Restrict the stream to a range of the document.
setRange(int, int) - Method in class satc.swing.SwingDocumentStream
Restrict the stream to a range of the document.
setRange(int, int, String) - Method in class satc.MultiStateLexer
Restricts the lexer scan range to start at index p0 and end at p1.
setState(String) - Method in class satc.MultiStateLexer
Sets the current state of the lexer.
setStyle(int, AttributeSet) - Method in class satc.TokenContext
 
setSwitch(int, String) - Method in class satc.MultiStateLexer
Makes the lexer switch to state state when a token of type tokenType is encontered.
setSyntax(JTextComponent, String) - Static method in class satc.Syntax
Set the syntax mode for a textArea.
SettingsReader - class satc.SettingsReader.
This class reads the syntax modes from a property file and registers them.
SettingsReader() - Constructor for class satc.SettingsReader
 
setTokenContext(TokenContext) - Method in class satc.swing.SyntaxView
Sets the token rendering context (colors, fonts ...).
setTokenCount(int) - Method in class satc.TokenContext
 
stringStyle - Static variable in class satc.Styles
 
Styles - class satc.Styles.
This class stores the styles used for syntax highligting.
Styles() - Constructor for class satc.Styles
 
SwingDocumentStream - class satc.swing.SwingDocumentStream.
Class to provide InputStream functionality from a portion of a Document.
SwingDocumentStream() - Constructor for class satc.swing.SwingDocumentStream
 
SwingDocumentStream(Document) - Constructor for class satc.swing.SwingDocumentStream
 
Syntax - class satc.Syntax.
This class acts as a a portal to the SATC package, providing a collection of utility methods that should cover the common usage of SATC.
Syntax() - Constructor for class satc.Syntax
 
SyntaxEditorKit - class satc.swing.SyntaxEditorKit.
Implementation of a syntax aware editor kit.
SyntaxEditorKit(String) - Constructor for class satc.swing.SyntaxEditorKit
 
SyntaxFactory - class satc.SyntaxFactory.
Factory for creating support classes for different syntax modes.
SyntaxFactory() - Constructor for class satc.SyntaxFactory
 
SyntaxInfo - class satc.SyntaxInfo.
This class contains general information about syntax modes.
SyntaxInfo(String, String, List, String) - Constructor for class satc.SyntaxInfo
The constructor.
SyntaxTextAreaUI - class satc.swing.SyntaxTextAreaUI.
Provides the look and feel for a syntax aware text component.
SyntaxTextAreaUI() - Constructor for class satc.swing.SyntaxTextAreaUI
 
SyntaxTextAreaUI(String) - Constructor for class satc.swing.SyntaxTextAreaUI
 
SyntaxView - class satc.swing.SyntaxView.
A View for simple multi-line text with support for syntax highlight.
SyntaxView(Element) - Constructor for class satc.swing.SyntaxView
 

T

tokenColors - Variable in class satc.TokenContext
Cache of foreground colors to represent the various tokens.
TokenContext - class satc.TokenContext.
 
TokenContext() - Constructor for class satc.TokenContext
 
tokenCount - Variable in class satc.TokenContext
 
tokenStyles - Variable in class satc.TokenContext
 
typeStyle - Static variable in class satc.Styles
 

U

updateLine(Document, int, MultiStateLexer) - Method in class satc.LexerDocumentListener
Updates the state attribute of the current line.

A C D G I K L M N O P R S T U