public class TypedVariable extends java.lang.Object implements java.io.Serializable
private static java.util.List<String> names;
the
variable name "names", the modifiers ["private", "static"] and the type name
"java.util.List<String>" will be stored.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNKNOWN_TYPE_NAME
Type name that is used if no type name was given.
|
Constructor and Description |
---|
TypedVariable(java.lang.String variableName,
java.lang.String typeName,
java.util.List<IToken> modifiers,
ShallowEntity definitionEntity)
Creates a new type info object, the variable name and the modifier list must
not be null.
|
Modifier and Type | Method and Description |
---|---|
ShallowEntity |
getDeclaringEntity()
Returns the entity that declares this variable.
|
java.util.List<IToken> |
getModifiers()
Returns an unmodifiable list of variable modifiers.
|
java.lang.String |
getTypeName()
Returns the variable's type name.
|
java.lang.String |
getVariableName()
Returns the variable's name.
|
boolean |
hasModifier(ETokenType modifierType)
Returns whether this type info contains the given modifier.
|
java.lang.String |
toString()
Creates string representation of the type info object.
|
public static final java.lang.String UNKNOWN_TYPE_NAME
public TypedVariable(java.lang.String variableName, java.lang.String typeName, java.util.List<IToken> modifiers, ShallowEntity definitionEntity)
public java.lang.String getVariableName()
public java.lang.String getTypeName()
public boolean hasModifier(ETokenType modifierType)
public java.util.List<IToken> getModifiers()
public ShallowEntity getDeclaringEntity()
public java.lang.String toString()
toString
in class java.lang.Object