Class AddressListParser
- java.lang.Object
-
- org.apache.james.mime4j.field.address.AddressListParser
-
- All Implemented Interfaces:
AddressListParserConstants,AddressListParserTreeConstants
public class AddressListParser extends Object implements AddressListParserTreeConstants, AddressListParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.protected JJTAddressListParserStatejjtreeTokentokenCurrent token.AddressListParserTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from interface org.apache.james.mime4j.field.address.AddressListParserConstants
ALPHA, ANY, ATEXT, COMMENT, DEFAULT, DIGIT, DOMAINLITERAL, DOTATOM, EOF, INCOMMENT, INDOMAINLITERAL, INQUOTEDSTRING, NESTED_COMMENT, QUOTEDPAIR, QUOTEDSTRING, tokenImage, WS
-
Fields inherited from interface org.apache.james.mime4j.field.address.AddressListParserTreeConstants
JJTADDR_SPEC, JJTADDRESS, JJTADDRESS_LIST, JJTANGLE_ADDR, JJTDOMAIN, JJTGROUP_BODY, JJTLOCAL_PART, JJTMAILBOX, JJTNAME_ADDR, jjtNodeName, JJTPHRASE, JJTROUTE, JJTVOID
-
-
Constructor Summary
Constructors Constructor Description AddressListParser(InputStream stream)Constructor with InputStream.AddressListParser(InputStream stream, String encoding)Constructor with InputStream and supplied encodingAddressListParser(Reader stream)Constructor.AddressListParser(AddressListParserTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddr_spec()voidaddress()voidaddress_list()voidangle_addr()voiddisable_tracing()Disable tracing.voiddomain()voidenable_tracing()Enable tracing.ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.voidgroup_body()voidlocal_part()voidmailbox()static voidmain(String[] args)voidname_addr()ASTaddressparseAddress()voidparseAddress0()ASTaddress_listparseAddressList()voidparseAddressList0()voidparseLine()ASTmailboxparseMailbox()voidparseMailbox0()voidphrase()voidReInit(InputStream stream)Reinitialise.voidReInit(InputStream stream, String encoding)Reinitialise.voidReInit(Reader stream)Reinitialise.voidReInit(AddressListParserTokenManager tm)Reinitialise.voidroute()booleantrace_enabled()Trace enabled.
-
-
-
Field Detail
-
jjtree
protected JJTAddressListParserState jjtree
-
token_source
public AddressListParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
AddressListParser
public AddressListParser(InputStream stream)
Constructor with InputStream.
-
AddressListParser
public AddressListParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
AddressListParser
public AddressListParser(Reader stream)
Constructor.
-
AddressListParser
public AddressListParser(AddressListParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
main
public static void main(String[] args) throws ParseException
- Throws:
ParseException
-
parseAddressList
public ASTaddress_list parseAddressList() throws ParseException
- Throws:
ParseException
-
parseAddress
public ASTaddress parseAddress() throws ParseException
- Throws:
ParseException
-
parseMailbox
public ASTmailbox parseMailbox() throws ParseException
- Throws:
ParseException
-
parseLine
public final void parseLine() throws ParseException- Throws:
ParseException
-
parseAddressList0
public final void parseAddressList0() throws ParseException- Throws:
ParseException
-
parseAddress0
public final void parseAddress0() throws ParseException- Throws:
ParseException
-
parseMailbox0
public final void parseMailbox0() throws ParseException- Throws:
ParseException
-
address_list
public final void address_list() throws ParseException- Throws:
ParseException
-
address
public final void address() throws ParseException- Throws:
ParseException
-
mailbox
public final void mailbox() throws ParseException- Throws:
ParseException
-
name_addr
public final void name_addr() throws ParseException- Throws:
ParseException
-
group_body
public final void group_body() throws ParseException- Throws:
ParseException
-
angle_addr
public final void angle_addr() throws ParseException- Throws:
ParseException
-
route
public final void route() throws ParseException- Throws:
ParseException
-
phrase
public final void phrase() throws ParseException- Throws:
ParseException
-
addr_spec
public final void addr_spec() throws ParseException- Throws:
ParseException
-
local_part
public final void local_part() throws ParseException- Throws:
ParseException
-
domain
public final void domain() throws ParseException- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(AddressListParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-