com.sun.tools.javac.comp
Class Resolve.StaticError

java.lang.Object
  extended by com.sun.tools.javac.code.Symbol
      extended by com.sun.tools.javac.comp.Resolve.ResolveError
          extended by com.sun.tools.javac.comp.Resolve.StaticError
All Implemented Interfaces:
Element
Enclosing class:
Resolve

 class Resolve.StaticError
extends Resolve.ResolveError

Resolve error class indicating that an instance member was accessed from a static context.


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
 
Fields inherited from class com.sun.tools.javac.comp.Resolve.ResolveError
debugName, explanation, sym, wrongSym
 
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.StaticError(Symbol sym)
           
 
Method Summary
(package private)  void report(Log log, JCDiagnostic.DiagnosticPosition pos, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes)
          Report error.
 
Methods inherited from class com.sun.tools.javac.comp.Resolve.ResolveError
accept, exists, getErrorKey, isOperator, setWrongSym, setWrongSym, toString
 
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
 

Constructor Detail

Resolve.StaticError

Resolve.StaticError(Symbol sym)
Method Detail

report

void report(Log log,
            JCDiagnostic.DiagnosticPosition pos,
            Type site,
            Name name,
            List<Type> argtypes,
            List<Type> typeargtypes)
Report error.

Overrides:
report in class Resolve.ResolveError
Parameters:
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.