Package mireka.address.parser.base
Class CharParser
- Object
-
- mireka.address.parser.base.CharParser
-
- Direct Known Subclasses:
AddressLiteralParser,DomainParser,Ipv4Parser,MailboxParser,PathParser,RecipientParser,RemotePartParser,ReversePathParser
public abstract class CharParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CharTokencurrentTokenprotected CharScannerscannerprotected Spellingspelling
-
Constructor Summary
Constructors Modifier Constructor Description protectedCharParser(String source)protectedCharParser(CharScanner charScanner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept(char ch)protected voidaccept(CharClass charClass)protected voidacceptIt()protected voidacceptThem(int count)protected StringpeekString(int length)protected intpopPosition()Returns and removes the last input text position which was put onto the stack usingpushPosition().protected StringpopSpelling()protected voidpushPosition()Saves the current position within the input text onto a stack.protected voidpushSpelling()
-
-
-
Field Detail
-
scanner
protected CharScanner scanner
-
currentToken
protected CharToken currentToken
-
spelling
protected Spelling spelling
-
-
Constructor Detail
-
CharParser
protected CharParser(CharScanner charScanner)
-
CharParser
protected CharParser(String source)
-
-
Method Detail
-
accept
protected void accept(char ch) throws java.text.ParseException- Throws:
java.text.ParseException
-
accept
protected void accept(CharClass charClass) throws java.text.ParseException
- Throws:
java.text.ParseException
-
acceptIt
protected void acceptIt()
-
acceptThem
protected void acceptThem(int count)
-
peekString
protected String peekString(int length)
-
pushSpelling
protected void pushSpelling()
-
popSpelling
protected String popSpelling()
-
pushPosition
protected void pushPosition()
Saves the current position within the input text onto a stack.
-
popPosition
protected int popPosition()
Returns and removes the last input text position which was put onto the stack usingpushPosition().
-
-