public class VisitorState extends Object
Constructor and Description |
---|
VisitorState() |
Modifier and Type | Method and Description |
---|---|
Pair<Tree,AnnotatedTypeMirror> |
getAssignmentContext()
Returns the assignment context.
|
ClassTree |
getClassTree()
Returns the class tree currently visiting.
|
AnnotatedTypeMirror.AnnotatedDeclaredType |
getClassType()
Returns the type of the enclosing class.
|
AnnotatedTypeMirror.AnnotatedDeclaredType |
getMethodReceiver()
Returns the method receiver type of the enclosing method.
|
MethodTree |
getMethodTree()
Returns the method tree currently visiting.
|
TreePath |
getPath()
Returns the current path for the visitor.
|
void |
setAssignmentContext(Pair<Tree,AnnotatedTypeMirror> assignmentContext)
Updates the assignment context.
|
void |
setClassTree(ClassTree ct)
Updates the tree of the class currently visited.
|
void |
setClassType(AnnotatedTypeMirror.AnnotatedDeclaredType act)
Updates the type of the 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> assignmentContext)
assignmentContext
- the new assignment context to usepublic 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()