public abstract class JVariable extends JNode implements CanBeSetFinal, CanHaveInitializer, HasName, HasType
HasName.Util
Modifier and Type | Field and Description |
---|---|
protected JDeclarationStatement |
declStmt |
BY_NAME_COMPARATOR
Modifier and Type | Method and Description |
---|---|
JLiteral |
getConstInitializer() |
JDeclarationStatement |
getDeclarationStatement() |
JExpression |
getInitializer() |
String |
getName() |
JType |
getType()
Returns the type of this expression.
|
boolean |
hasInitializer() |
boolean |
isFinal() |
void |
setFinal() |
void |
setName(String name) |
void |
setType(JType newType) |
getSourceInfo, setSourceInfo, toSource, toString
setInitializer
traverse
protected JDeclarationStatement declStmt
public JLiteral getConstInitializer()
getConstInitializer
in interface CanHaveInitializer
public JDeclarationStatement getDeclarationStatement()
public JExpression getInitializer()
public JType getType()
HasType
public boolean hasInitializer()
hasInitializer
in interface CanHaveInitializer
public boolean isFinal()
isFinal
in interface CanBeFinal
public void setFinal()
setFinal
in interface CanBeSetFinal
public void setName(String name)
public void setType(JType newType)
Copyright © 2018. All rights reserved.