public class JLocal extends JVariable implements HasEnclosingMethod
HasName.Util
BY_NAME_COMPARATOR
Modifier and Type | Method and Description |
---|---|
JMethod |
getEnclosingMethod() |
void |
setInitializer(JDeclarationStatement declStmt) |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
getConstInitializer, getDeclarationStatement, getInitializer, getName, getType, hasInitializer, isFinal, setFinal, setName, setType
getSourceInfo, setSourceInfo, toSource, toString
public JMethod getEnclosingMethod()
getEnclosingMethod
in interface HasEnclosingMethod
public void setInitializer(JDeclarationStatement declStmt)
setInitializer
in interface CanHaveInitializer
public void traverse(JVisitor visitor, Context ctx)
JVisitable
traverse
in interface JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.