public class ReferenceFetcher extends AbstractExpressionVisitor
Constructor and Description |
---|
ReferenceFetcher()
Creates a new reference fetcher.
|
Modifier and Type | Method and Description |
---|---|
SortedSet<Reference> |
getReferences(Expression expression)
Traverses the given expression and returns the references that were found.
|
Object |
visitReference(Reference reference)
Adds the reference to the set.
|
visitBinaryOperation, visitFunctionCall, visitLiteral, visitUnaryOperation
public ReferenceFetcher()
public SortedSet<Reference> getReferences(Expression expression)
expression
- the expression from which to fetch referencespublic Object visitReference(Reference reference)
visitReference
in interface ExpressionVisitor
visitReference
in class AbstractExpressionVisitor
reference
- the reference to visit