A B C D F G H I K L M N O P Q S T Z

A

AbstractSymbol<P extends Processor> - Class in net.sf.parcinj
Abstract super class which implements Symbol.process(TokenIterator, Processor) according to the contract.
AbstractSymbol() - Constructor for class net.sf.parcinj.AbstractSymbol
 
Alternative<P extends Processor> - Class in net.sf.parcinj
Compound symbol which contains several Symbols.
Alternative() - Constructor for class net.sf.parcinj.Alternative
Creates an instance without any symbol.
Alternative(Symbol<P>) - Constructor for class net.sf.parcinj.Alternative
Creates an instance with one symbol.
asString() - Method in class net.sf.parcinj.TerminalSymbolType
Returns the text representation of the terminal symbol.

B

BeanCompiler - Class in net.sf.parcinj.bl
Compiler for a simple bean language which allows to create Java objects via constructors, static methods, or by using setters.
BeanCompiler() - Constructor for class net.sf.parcinj.bl.BeanCompiler
 

C

compile(Type, String) - Static method in class net.sf.parcinj.bl.BeanCompiler
Creates a new object of specified type in accordance with the specified description.
createFailure(TokenType) - Method in class net.sf.parcinj.TerminalSymbolByType
Returns failure text for the specified token type.
createTokenIterator(Reader) - Method in interface net.sf.parcinj.Lexer
Creates a token iterator for the specified reader.
createTokenIterator(Reader) - Method in class net.sf.parcinj.SimpleLexer
 
currentToken() - Method in interface net.sf.parcinj.TokenIterator
Returns the current token.

D

definedBy(Symbol<P>) - Method in class net.sf.parcinj.NonTerminalSymbol
Sets the wrapped symbol.
delimiter(String) - Static method in class net.sf.parcinj.TerminalSymbolType
Creates a terminal symbol type which is a delimiter.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.AbstractSymbol
Processes tokens taken from the specified iterator without initial matching check.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.Alternative
Processes the current token of the specified iterator by the first matching symbol.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.NonTerminalSymbol
 
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.OneOrMore
Processes the current symbol of the specified iterator by the wrapped symbol and repeats this as long as the symbol still matches.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.Optional
Processes the wrapped symbol if it matches the current token of the specified iterator.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.Sequence
Processes this sequence by processing symbol by symbol.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.SequenceOfSeparatedSymbols
Processes the wrapped symbol if it matches otherwise does nothing.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.TerminalSymbol
Processes the current token of the specified iterator by invoking TerminalSymbol.process(Token, Processor) and go to the next token.
doProcess(TokenIterator, P) - Method in class net.sf.parcinj.ZeroOrMore
Processes the specified iterator as long as the wrapped symbol matches.

F

failure(String) - Static method in class net.sf.parcinj.MatchingResult
Creates a matching failure for the specified reason.
finishList() - Method in class net.sf.parcinj.example.list.ListBuilder
 
finishList() - Method in interface net.sf.parcinj.example.list.ListProcessor
 
followedBy(Symbol<P>) - Method in class net.sf.parcinj.AbstractSymbol
 
followedBy(Symbol<P>) - Method in class net.sf.parcinj.Sequence
Appends the specified symbol to this sequence.
followedBy(Symbol<P>) - Method in interface net.sf.parcinj.Symbol
Returns a symbol which assumes this symbol followed by the specified symbol.

G

getColumnNumber() - Method in class net.sf.parcinj.Token
Returns the column number where the token text starts.
getFailureReason() - Method in class net.sf.parcinj.MatchingResult
Returns the reason of failure.
getInvalidToken() - Method in exception net.sf.parcinj.ParsingException
Returns the token causing this exception.
getLineNumber() - Method in class net.sf.parcinj.Token
Returns the line number where the token text starts.
getList() - Method in class net.sf.parcinj.example.list.ListBuilder
 
getText() - Method in class net.sf.parcinj.Token
Returns the token text.
getType() - Method in class net.sf.parcinj.Token
Returns the type of this token.

H

handleAtom(String) - Method in class net.sf.parcinj.example.list.ListBuilder
 
handleAtom(String) - Method in interface net.sf.parcinj.example.list.ListProcessor
 

I

isKeyWord() - Method in class net.sf.parcinj.TerminalSymbolType
Returns true if this is a key word.
isSuccessful() - Method in class net.sf.parcinj.MatchingResult
Returns true if matching was successful.

K

keyWord(String) - Static method in class net.sf.parcinj.TerminalSymbolType
Creates a terminal symbol type which is a key word.

L

Lexer - Interface in net.sf.parcinj
Interface of classes which turn a character stream into a Token stream.
ListBuilder - Class in net.sf.parcinj.example.list
 
ListBuilder() - Constructor for class net.sf.parcinj.example.list.ListBuilder
 
ListParser<P extends ListProcessor> - Class in net.sf.parcinj.example.list
 
ListParser() - Constructor for class net.sf.parcinj.example.list.ListParser
 
ListProcessor - Interface in net.sf.parcinj.example.list
 

M

matches(Token) - Method in class net.sf.parcinj.Alternative
Returns MatchingResult.OK if at least one symbol matches the specified token.
matches(Token) - Method in class net.sf.parcinj.NonTerminalSymbol
 
matches(Token) - Method in class net.sf.parcinj.OneOrMore
Returns MatchingResult.OK if the wrapped symbol matches.
matches(Token) - Method in class net.sf.parcinj.Optional
Returns MatchingResult.OK.
matches(Token) - Method in class net.sf.parcinj.Sequence
Returns MatchingResult.OK if either the sequence is empty or the first symbol matches the specified token.
matches(Token) - Method in class net.sf.parcinj.SequenceOfSeparatedSymbols
Returns MatchingResult.OK.
matches(Token) - Method in interface net.sf.parcinj.Symbol
Returns true if the specified token matches.
matches(Token) - Method in class net.sf.parcinj.TerminalSymbolByText
Returns MatchingResult.OK the specified token is not null and its token text equals the terminal symbol text specified in the constructor.
matches(Token) - Method in class net.sf.parcinj.TerminalSymbolByType
Returns MatchingResult.OK if the specified token is not null and it is of equal type as specified in the constructor.
matches(Token) - Method in class net.sf.parcinj.ZeroOrMore
Returns MatchingResult.OK.
MatchingResult - Class in net.sf.parcinj
Immutable class representing the result of a Symbol.matches(Token) invocation.

N

net.sf.parcinj - package net.sf.parcinj
ParCinJ core classes.
net.sf.parcinj.bl - package net.sf.parcinj.bl
Compiler for a simple language to create Java Beans.
net.sf.parcinj.example.list - package net.sf.parcinj.example.list
Example: List Parser
nextToken() - Method in interface net.sf.parcinj.TokenIterator
Moves to the next token.
NonTerminalSymbol<P extends Processor> - Class in net.sf.parcinj
Named wrapper of a Symbol.
NonTerminalSymbol(String) - Constructor for class net.sf.parcinj.NonTerminalSymbol
Creates an instance with the specified name.
NORMAL_TOKEN - Static variable in class net.sf.parcinj.NormalToken
The one and only one instance of this class.
NormalToken - Class in net.sf.parcinj
Token type representing plain text which is neither a key word nor a delimiter but for example a variable name.

O

OK - Static variable in class net.sf.parcinj.MatchingResult
Successful matching result.
OneOrMore<P extends Processor> - Class in net.sf.parcinj
Wraps a symbol which will be executed one or more times.
OneOrMore(Symbol<P>) - Constructor for class net.sf.parcinj.OneOrMore
Creates an instance for the specified symbol.
oneOrMoreTimes() - Method in class net.sf.parcinj.AbstractSymbol
 
oneOrMoreTimes() - Method in interface net.sf.parcinj.Symbol
Returns a symbol which allows this symbol to appear one or more times.
optional() - Method in class net.sf.parcinj.AbstractSymbol
 
Optional<P extends Processor> - Class in net.sf.parcinj
Wraps a symbol which will be processed only if it matches the current token.
Optional(Symbol<P>) - Constructor for class net.sf.parcinj.Optional
Creates an instance for the specified symbol.
optional() - Method in interface net.sf.parcinj.Symbol
Returns a symbol which allows this symbol to be optional.
or(Symbol<P>) - Method in class net.sf.parcinj.AbstractSymbol
 
or(Symbol<P>) - Method in class net.sf.parcinj.Alternative
Appends the specified symbol.
or(Symbol<P>) - Method in interface net.sf.parcinj.Symbol
Returns a symbol which allows this symbol or the specified symbol to appear.

P

parse(Reader, P) - Method in class net.sf.parcinj.example.list.ListParser
 
ParsingException - Exception in net.sf.parcinj
Exception thrown if a parser error occurred.
postProcess(P) - Method in class net.sf.parcinj.NonTerminalSymbol
Invoke processing at the specified processor after the wrapped symbol has been processed.
preProcess(P) - Method in class net.sf.parcinj.NonTerminalSymbol
Invoke processing at the specified processor before the wrapped symbol will be processed.
process(TokenIterator, P) - Method in class net.sf.parcinj.AbstractSymbol
Processes zero or many tokens from the specified iterator.
process(TokenIterator, P) - Method in interface net.sf.parcinj.Symbol
Processes zero or more tokens consumed from the specified iterator by using the specified processor.
process(Token, P) - Method in class net.sf.parcinj.TerminalSymbol
Processes the specified token by the specified processor.
Processor - Interface in net.sf.parcinj
Marker interface of a processor which might be used during symbol processing.

Q

QUOTED_TEXT - Static variable in class net.sf.parcinj.QuotedText
The one and only one instance of this class.
QuotedText - Class in net.sf.parcinj
Token type representing quoted text.

S

Sequence<P extends Processor> - Class in net.sf.parcinj
Sequence of symbols.
Sequence() - Constructor for class net.sf.parcinj.Sequence
Creates an empty sequence.
Sequence(Symbol<P>) - Constructor for class net.sf.parcinj.Sequence
Creates a sequence with one symbol.
SequenceOfSeparatedSymbols<P extends Processor> - Class in net.sf.parcinj
Compound with two symbols where one symbol is a delimiter.
SequenceOfSeparatedSymbols(Symbol<P>, Symbol<P>) - Constructor for class net.sf.parcinj.SequenceOfSeparatedSymbols
Creates an instance for the specified symbol and delimiter.
SimpleLexer - Class in net.sf.parcinj
A simple lexer which can handle keywords, delimiters, and quoted text.
SimpleLexer(TerminalSymbolType...) - Constructor for class net.sf.parcinj.SimpleLexer
Creates an instance for the specified terminal symbols and no quoting.
SimpleLexer(char, char, TerminalSymbolType...) - Constructor for class net.sf.parcinj.SimpleLexer
Creates an instance for the specified escape character, quote character, and terminal symbols.
SimpleLexer(char, char, String, TerminalSymbolType...) - Constructor for class net.sf.parcinj.SimpleLexer
Creates an instance for the specified escape character, quote character, ignored delimiting characters, and terminal symbols.
startList() - Method in class net.sf.parcinj.example.list.ListBuilder
 
startList() - Method in interface net.sf.parcinj.example.list.ListProcessor
 
Symbol<P extends Processor> - Interface in net.sf.parcinj
Interface of classes representing a symbol.

T

TerminalSymbol<P extends Processor> - Class in net.sf.parcinj
Abstract super class of all terminal symbols.
TerminalSymbol() - Constructor for class net.sf.parcinj.TerminalSymbol
 
TerminalSymbolByText<P extends Processor> - Class in net.sf.parcinj
A terminal symbol which matches a Token by token text.
TerminalSymbolByText(TerminalSymbolType) - Constructor for class net.sf.parcinj.TerminalSymbolByText
Creates an instance for the string representation of the specified terminal symbol type.
TerminalSymbolByText(String) - Constructor for class net.sf.parcinj.TerminalSymbolByText
Creates an instance for the specified terminal symbol text.
TerminalSymbolByType<P extends Processor> - Class in net.sf.parcinj
Terminal symbol specified by a TokenType.
TerminalSymbolByType(TokenType) - Constructor for class net.sf.parcinj.TerminalSymbolByType
Creates an instance for the specified token type.
TerminalSymbolType - Class in net.sf.parcinj
Class representing a token type which is a terminal symbol.
Token - Class in net.sf.parcinj
Immutable class representing a parsed chunk of text.
Token(TerminalSymbolType, int, int) - Constructor for class net.sf.parcinj.Token
Creates an instance for the specified terminal symbol which provides the token text and TokenType.
Token(TokenType, String, int, int) - Constructor for class net.sf.parcinj.Token
Creates an instance for the specified chunk of text.
TokenIterator - Interface in net.sf.parcinj
Interface of classes which iterate over Token objects.
TokenType - Interface in net.sf.parcinj
Marker interface of classes representing the type of a Token.
toString() - Method in class net.sf.parcinj.NonTerminalSymbol
 
toString() - Method in class net.sf.parcinj.NormalToken
 
toString() - Method in class net.sf.parcinj.QuotedText
 
toString() - Method in class net.sf.parcinj.TerminalSymbolType
Returns TerminalSymbolType.asString().
toString() - Method in class net.sf.parcinj.Token
 

Z

ZeroOrMore<P extends Processor> - Class in net.sf.parcinj
Wraps a symbol which will be executed zero or more times.
ZeroOrMore(Symbol<P>) - Constructor for class net.sf.parcinj.ZeroOrMore
Creates an instance for the specified symbol.
zeroOrMoreTimes() - Method in class net.sf.parcinj.AbstractSymbol
 
zeroOrMoreTimes() - Method in interface net.sf.parcinj.Symbol
Returns a symbol which allows this symbol to appear zero or more times.
zeroOrMoreTimesSeparatedBy(Symbol<P>) - Method in class net.sf.parcinj.AbstractSymbol
 
zeroOrMoreTimesSeparatedBy(Symbol<P>) - Method in interface net.sf.parcinj.Symbol
Returns a symbol which assumes this symbol to appear zero or more times separated by the specified delimiter.

A B C D F G H I K L M N O P Q S T Z