|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.code.Symbol
com.sun.tools.javac.comp.Resolve.ResolveError
private class Resolve.ResolveError
Root class for resolve errors. Instances of this class indicate "Symbol not found". Instances of subclass indicate other errors.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.tools.javac.code.Symbol |
|---|
Symbol.ClassSymbol, Symbol.Completer, Symbol.CompletionFailure, Symbol.DelegatedSymbol, Symbol.Level, Symbol.MethodSymbol, Symbol.OperatorSymbol, Symbol.PackageSymbol, Symbol.TypeSymbol, Symbol.VarSymbol, Symbol.Visitor<R,P> |
| Field Summary | |
|---|---|
(package private) java.lang.String |
debugName
The name of the kind of error, for debugging only. |
(package private) JCDiagnostic |
explanation
An auxiliary explanation set in case of instantiation errors. |
(package private) Symbol |
sym
The symbol that was determined by resolution, or errSymbol if none was found. |
(package private) Symbol |
wrongSym
The symbol that was a close mismatch, or null if none was found. |
| Fields inherited from class com.sun.tools.javac.code.Symbol |
|---|
attributes_field, completer, erasure_field, flags_field, kind, level, name, owner, type |
| Constructor Summary | |
|---|---|
Resolve.ResolveError(int kind,
Symbol sym,
java.lang.String debugName)
|
|
| Method Summary | ||
|---|---|---|
|
accept(ElementVisitor<R,P> v,
P p)
Applies a visitor to this element. |
|
boolean |
exists()
True if the symbol represents an entity that exists. |
|
(package private) java.lang.String |
getErrorKey(java.lang.String key,
List<Type> argtypes,
List<Type> typeargtypes,
Kinds.KindName kindname)
|
|
(package private) boolean |
isOperator(Name name)
A name designates an operator if it consists of a non-empty sequence of operator symbols +-~!/*%&|^<>= |
|
(package private) void |
report(Log log,
JCDiagnostic.DiagnosticPosition pos,
Type site,
Name name,
List<Type> argtypes,
List<Type> typeargtypes)
Report error. |
|
(package private) Resolve.ResolveError |
setWrongSym(Symbol sym)
Update wrongSym and return this. |
|
(package private) Resolve.ResolveError |
setWrongSym(Symbol sym,
JCDiagnostic explanation)
Update wrongSym and explanation and return this. |
|
java.lang.String |
toString()
Print the (debug only) name of the kind of error. |
|
| Methods inherited from class com.sun.tools.javac.code.Symbol |
|---|
accept, addParentLevel, asMemberOf, asType, attribute, clone, complete, enclClass, erasure, externalType, flags, flatName, getAnnotation, getAnnotationMirrors, getEnclosedElements, getEnclosingElement, getKind, getLevel, getModifiers, getQualifiedName, getSimpleName, getTypeParameters, hasOuterInstance, isConstructor, isEnclosedBy, isInheritedIn, isInner, isInterface, isLocal, isMemberOf, isStatic, isSubClass, location, location, members, outermostClass, overrides, packge, removeParentLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.lang.model.element.Element |
|---|
equals, hashCode |
| Field Detail |
|---|
final java.lang.String debugName
final Symbol sym
Symbol wrongSym
JCDiagnostic explanation
| Constructor Detail |
|---|
Resolve.ResolveError(int kind,
Symbol sym,
java.lang.String debugName)
| Method Detail |
|---|
public <R,P> R accept(ElementVisitor<R,P> v,
P p)
Element
R - the return type of the visitor's methodsP - the type of the additional parameter to the visitor's methodsv - the visitor operating on this elementp - additional parameter to the visitor
public java.lang.String toString()
toString in class Symbol
Resolve.ResolveError setWrongSym(Symbol sym,
JCDiagnostic explanation)
Resolve.ResolveError setWrongSym(Symbol sym)
public boolean exists()
Symbol
exists in class Symbol
void report(Log log,
JCDiagnostic.DiagnosticPosition pos,
Type site,
Name name,
List<Type> argtypes,
List<Type> typeargtypes)
log - The error log to be used for error reporting.pos - The position to be used for error reporting.site - The original type from where the selection took place.name - The name of the symbol to be resolved.argtypes - The invocation's value arguments,
if we looked for a method.typeargtypes - The invocation's type arguments,
if we looked for a method.
java.lang.String getErrorKey(java.lang.String key,
List<Type> argtypes,
List<Type> typeargtypes,
Kinds.KindName kindname)
boolean isOperator(Name name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||