public class JavaName extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(String segment)
Adds the name segment to the head of this.
|
void |
addLast(String segment)
Adds the name segment to the tail of this.
|
JavaName |
append(JavaName other)
Adds other name to the tail of this.
|
static JavaName |
of(AstSimpleName name)
Creates a new object from a DMDL simple name.
|
String |
toConstantName()
Returns the
UPPER_CASE of this name. |
String |
toMemberName()
Returns the
camelCase of this name. |
String |
toTypeName()
Returns the
CamelCase of this name. |
public static JavaName of(AstSimpleName name)
name - the target nameIllegalArgumentException - if some parameters were nullpublic String toTypeName()
CamelCase of this name.public String toMemberName()
camelCase of this name.public String toConstantName()
UPPER_CASE of this name.public void addFirst(String segment)
segment - the segment to addIllegalArgumentException - if the segment is invalidpublic void addLast(String segment)
segment - the segment to addIllegalArgumentException - if the segment is invalidpublic JavaName append(JavaName other)
other - name to addIllegalArgumentException - if some parameters were nullCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.