Modifier and Type | Field and Description |
---|---|
static Namespace |
packageNs
The default package namespace for an unqualified name.
|
Constructor and Description |
---|
Name(int kind,
Nsset qualifiers,
String baseName)
Construct a Name of any kind except CONSTANT_TypeName.
|
Name(Name typename_base,
Name typename_parameter)
Construct a Name of kind CONSTANT_TypeName, which represents a
parameterized type such as C.
|
Name(Namespace ns,
String baseName)
Construct a name whose kind is CONSTANT_Qname, with the namespace and
base name specified.
|
Name(Nsset multiname_qualifiers,
String baseName)
Construct a Name whose kind is CONSTANT_Multiname.
|
Name(String baseName)
Construct the simplest kind of Name: one whose kind is CONSTANT_Qname and
whose namespace set contains the single package namespace with name "".
|
Modifier and Type | Method and Description |
---|---|
boolean |
couldBeAnyType() |
boolean |
equals(Object o)
Determine equality by checking Name objects' corresponding fields.
|
String |
getBaseName() |
int |
getKind() |
Nsset |
getQualifiers() |
Namespace |
getSingleQualifier() |
Name |
getTypeNameBase()
If this Name is for a parameterized type C.
|
Name |
getTypeNameParameter()
If this Name is for a parameterized type C.
|
int |
hashCode()
Generate a composite hash code using the Name's fields' hashes.
|
void |
initTypeName(Name base,
Name parameter)
Method to init a type name with a base name and parameter name.
|
boolean |
isAttributeName() |
boolean |
isRuntimeName()
Is this some type of runtime name?
|
boolean |
isTypeName() |
int |
runtimeNameAllowance()
Compute the number of value stack elements this Name will need at
evaluation.
|
String |
toString() |
public static final Namespace packageNs
public Name(String baseName)
baseName
- The unqualified name.public Name(Namespace ns, String baseName)
ns
- - the Namespace.baseName
- The unqualified name.public Name(Nsset multiname_qualifiers, String baseName)
multiname_qualifiers
- The namespace set for the Name.baseName
- The base name for the Name.public Name(int kind, Nsset qualifiers, String baseName)
kind
- The kind of the Name.qualifiers
- The namespace set for the name.baseName
- The base name for the Name.public Name(Name typename_base, Name typename_parameter)
typename_base
- The Name for type C.typename_parameter
- The Name for type T.public boolean isAttributeName()
public Namespace getSingleQualifier()
public int getKind()
public String getBaseName()
public Nsset getQualifiers()
public boolean isTypeName()
public boolean couldBeAnyType()
public Name getTypeNameBase()
public Name getTypeNameParameter()
public int hashCode()
public boolean equals(Object o)
public void initTypeName(Name base, Name parameter)
base
- the base name this type name should useparameter
- the parameter name this type name should usepublic boolean isRuntimeName()
public int runtimeNameAllowance()
Copyright © 2016 The Apache Software Foundation. All rights reserved.