Constructor and Description |
---|
Var(int line,
java.lang.String name)
Constructor for a local variable.
|
Var(int line,
java.lang.String name,
boolean isField)
Constructor.
|
Var(java.lang.String name)
Constructor for a local variable.
|
Modifier and Type | Method and Description |
---|---|
Var |
clone() |
int |
compareTo(Var var) |
boolean |
equals(java.lang.Object obj) |
int |
getLine()
Return the declaration line.
|
java.lang.String |
getName()
Return the variable name.
|
int |
hashCode() |
boolean |
isField()
Return true if this variable is a field.
|
void |
setLine(int line)
Set the line.
|
java.lang.String |
toString() |
public Var(java.lang.String name)
name
- the variable namepublic Var(int line, java.lang.String name, boolean isField)
line
- the declaration linename
- the variable nameisField
- true for a fieldpublic Var(int line, java.lang.String name)
line
- the declaration linename
- the variable namepublic boolean isField()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Var clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setLine(int line)
line
- the linepublic int getLine()
public java.lang.String getName()
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence