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 Token
jj_nt
Next token.protected JJTAddressListParserState
jjtree
Token
token
Current token.AddressListParserTokenManager
token_source
Generated 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 void
addr_spec()
void
address()
void
address_list()
void
angle_addr()
void
disable_tracing()
Disable tracing.void
domain()
void
enable_tracing()
Enable tracing.ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.void
group_body()
void
local_part()
void
mailbox()
static void
main(String[] args)
void
name_addr()
ASTaddress
parseAddress()
void
parseAddress0()
ASTaddress_list
parseAddressList()
void
parseAddressList0()
void
parseLine()
ASTmailbox
parseMailbox()
void
parseMailbox0()
void
phrase()
void
ReInit(InputStream stream)
Reinitialise.void
ReInit(InputStream stream, String encoding)
Reinitialise.void
ReInit(Reader stream)
Reinitialise.void
ReInit(AddressListParserTokenManager tm)
Reinitialise.void
route()
boolean
trace_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.
-
-