Package com.io7m.sunburst.model
Class SBPeer.Builder
java.lang.Object
com.io7m.sunburst.model.SBPeer.Builder
- Enclosing class:
- SBPeer
A mutable import builder.
-
Method Summary
Modifier and TypeMethodDescriptionaddImport(SBPackageIdentifier identifier) Add an import to the set.addImportText(String text) Add an import to the set.build()Build the peer.
-
Method Details
-
addImport
Add an import to the set.- Parameters:
identifier- The identifier- Returns:
- A new import
-
addImportText
Add an import to the set.- Parameters:
text- The text to parse as an identifier- Returns:
- A new import
-
build
Build the peer.- Returns:
- The peer
- Throws:
SBPeerException- If the peer would not be well-formed
-