@Immutable public final class PackageNameUnqualified extends Object implements ModelElementType
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PATTERN
The pattern that defines a valid package name.
|
| Constructor and Description |
|---|
PackageNameUnqualified(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex,
String in_value)
Construct a package name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> |
getLexicalInformation()
Fetch the lexical information for the element.
|
String |
getValue() |
int |
hashCode() |
static PackageNameUnqualified |
of(String value)
Construct a name.
|
String |
toString() |
public static final Pattern PATTERN
public static PackageNameUnqualified of(String value) throws org.valid4j.exceptions.RequireViolation
value - The raw string valueorg.valid4j.exceptions.RequireViolation - If the name is not validpublic String getValue()
public Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> getLexicalInformation()
ModelElementTypegetLexicalInformation in interface ModelElementTypeCopyright © 2015 <code@io7m.com> http://io7m.com