com.sun.tools.javac.code
Interface Symbol.Visitor<R,P>
- Type Parameters:
R - the return type of the operation implemented by this
visitor; use Void if no return type is needed.P - the type of the second argument (the first being the
symbol itself) of the operation implemented by this visitor; use
Void if a second argument is not needed.
- All Known Implementing Classes:
- Types.DefaultSymbolVisitor, Types.SymbolPrinter
- Enclosing class:
- Symbol
public static interface Symbol.Visitor<R,P>
A visitor for symbols. A visitor is used to implement operations
(or relations) on symbols. Most common operations on types are
binary relations and this interface is designed for binary
relations, that is, operations on the form
Symbol × P → R.
visitClassSymbol
R visitClassSymbol(Symbol.ClassSymbol s,
P arg)
visitMethodSymbol
R visitMethodSymbol(Symbol.MethodSymbol s,
P arg)
visitPackageSymbol
R visitPackageSymbol(Symbol.PackageSymbol s,
P arg)
visitOperatorSymbol
R visitOperatorSymbol(Symbol.OperatorSymbol s,
P arg)
visitVarSymbol
R visitVarSymbol(Symbol.VarSymbol s,
P arg)
visitTypeSymbol
R visitTypeSymbol(Symbol.TypeSymbol s,
P arg)
visitSymbol
R visitSymbol(Symbol s,
P arg)