public class VisitorState extends Object
Constructor and Description |
---|
VisitorState() |
Modifier and Type | Method and Description |
---|---|
Pair<Tree,AnnotatedTypeMirror> |
getAssignmentContext() |
ClassTree |
getClassTree() |
AnnotatedTypeMirror.AnnotatedDeclaredType |
getClassType() |
AnnotatedTypeMirror.AnnotatedDeclaredType |
getMethodReceiver() |
MethodTree |
getMethodTree() |
TreePath |
getPath() |
void |
setAssignmentContext(Pair<Tree,AnnotatedTypeMirror> assCtxt) |
void |
setClassTree(ClassTree ct)
Updates the tree of the current class currently visited
|
void |
setClassType(AnnotatedTypeMirror.AnnotatedDeclaredType act)
Updates the type of the current class currently visited
|
void |
setMethodReceiver(AnnotatedTypeMirror.AnnotatedDeclaredType mrt)
Updates the method receiver type currently visited
|
void |
setMethodTree(MethodTree mt)
Updates the method currently visited
|
void |
setPath(TreePath path)
Sets the current path for the visitor.
|
String |
toString() |
public void setClassType(AnnotatedTypeMirror.AnnotatedDeclaredType act)
public void setClassTree(ClassTree ct)
public void setMethodReceiver(AnnotatedTypeMirror.AnnotatedDeclaredType mrt)
public void setMethodTree(MethodTree mt)
public void setAssignmentContext(Pair<Tree,AnnotatedTypeMirror> assCtxt)
public void setPath(TreePath path)
public AnnotatedTypeMirror.AnnotatedDeclaredType getClassType()
public ClassTree getClassTree()
public AnnotatedTypeMirror.AnnotatedDeclaredType getMethodReceiver()
public MethodTree getMethodTree()
public Pair<Tree,AnnotatedTypeMirror> getAssignmentContext()
public TreePath getPath()
@SideEffectFree public String toString()