Class Builder
- java.lang.Object
-
- org.apache.james.mime4j.field.address.Builder
-
class Builder extends java.lang.Object
Transforms the JJTree-generated abstract syntax tree into a graph of org.apache.james.mime4j.dom.address objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Builder.ChildNodeIterator
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addSpecials(java.lang.StringBuilder out, Token specialToken)
Address
buildAddress(ASTaddress node, DecodeMonitor monitor)
AddressList
buildAddressList(ASTaddress_list node, DecodeMonitor monitor)
private Mailbox
buildAddrSpec(DomainList route, ASTaddr_spec node)
private Mailbox
buildAddrSpec(ASTaddr_spec node)
private Mailbox
buildAngleAddr(ASTangle_addr node)
private MailboxList
buildGroupBody(ASTgroup_body node, DecodeMonitor monitor)
Mailbox
buildMailbox(ASTmailbox node, DecodeMonitor monitor)
private Mailbox
buildNameAddr(ASTname_addr node, DecodeMonitor monitor)
private DomainList
buildRoute(ASTroute node)
private java.lang.String
buildString(SimpleNode node, boolean stripSpaces)
static Builder
getInstance()
-
-
-
Field Detail
-
singleton
private static final Builder singleton
-
-
Method Detail
-
getInstance
public static Builder getInstance()
-
buildAddressList
public AddressList buildAddressList(ASTaddress_list node, DecodeMonitor monitor) throws ParseException
- Throws:
ParseException
-
buildAddress
public Address buildAddress(ASTaddress node, DecodeMonitor monitor) throws ParseException
- Throws:
ParseException
-
buildGroupBody
private MailboxList buildGroupBody(ASTgroup_body node, DecodeMonitor monitor) throws ParseException
- Throws:
ParseException
-
buildMailbox
public Mailbox buildMailbox(ASTmailbox node, DecodeMonitor monitor) throws ParseException
- Throws:
ParseException
-
buildNameAddr
private Mailbox buildNameAddr(ASTname_addr node, DecodeMonitor monitor) throws ParseException
- Throws:
ParseException
-
buildAngleAddr
private Mailbox buildAngleAddr(ASTangle_addr node) throws ParseException
- Throws:
ParseException
-
buildRoute
private DomainList buildRoute(ASTroute node) throws ParseException
- Throws:
ParseException
-
buildAddrSpec
private Mailbox buildAddrSpec(ASTaddr_spec node)
-
buildAddrSpec
private Mailbox buildAddrSpec(DomainList route, ASTaddr_spec node)
-
buildString
private java.lang.String buildString(SimpleNode node, boolean stripSpaces)
-
addSpecials
private void addSpecials(java.lang.StringBuilder out, Token specialToken)
-
-