|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.rsta.ac.java.rjc.lang.Type
public class Type
A type.
Type:
Identifier [TypeArguments] { . Identifier [TypeArguments] } {[]}
BasicType
| Constructor Summary | |
|---|---|
Type()
|
|
Type(String identifier)
|
|
Type(String identifier,
int bracketPairCount)
|
|
| Method Summary | |
|---|---|
void |
addIdentifier(String identifier,
List typeArgs)
Adds an identifier to this type. |
int |
getIdentifierCount()
|
String |
getName(boolean fullyQualified)
Returns the name of this type. |
String |
getName(boolean fullyQualified,
boolean addTypeArgs)
Returns the name of this type. |
List |
getTypeArguments(int index)
|
void |
incrementBracketPairCount(int count)
|
boolean |
isArray()
Returns whether this type is an array. |
boolean |
isBasicType()
|
void |
setBracketPairCount(int count)
|
String |
toString()
Returns a string representation of this type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Type()
public Type(String identifier)
public Type(String identifier,
int bracketPairCount)
| Method Detail |
|---|
public void addIdentifier(String identifier,
List typeArgs)
identifier - The identifier.typeArgs - The type arguments for the identifier. This may be
null or an empty list if there are none.public int getIdentifierCount()
public String getName(boolean fullyQualified)
fullyQualified - Whether the returned value should be
fully qualified.
getName(boolean, boolean)
public String getName(boolean fullyQualified,
boolean addTypeArgs)
fullyQualified - Whether the returned value should be
fully qualified.addTypeArgs - Whether type arguments should be at the end of
the returned string, if any.
getName(boolean)public List getTypeArguments(int index)
public void incrementBracketPairCount(int count)
public boolean isArray()
public boolean isBasicType()
public void setBracketPairCount(int count)
public String toString()
toString in class ObjectgetName(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||