org.sonar.java.resolve
Class Symbol

java.lang.Object
  extended by org.sonar.java.resolve.Symbol
Direct Known Subclasses:
Resolve.AccessErrorSymbol, Resolve.AmbiguityErrorSymbol, Resolve.SymbolNotFound, Symbol.MethodSymbol, Symbol.PackageSymbol, Symbol.TypeSymbol, Symbol.VariableSymbol

public class Symbol
extends Object


Nested Class Summary
static class Symbol.MethodSymbol
          Represents a method, constructor or initializer (static or instance).
static class Symbol.PackageSymbol
          Represents package.
static class Symbol.TypeSymbol
          Represents a class, interface, enum or annotation type.
static class Symbol.VariableSymbol
          Represents a field, enum constant, method or constructor parameter, local variable, resource variable or exception parameter.
 
Field Summary
static int ABSENT
           
static int AMBIGUOUS
           
static int ERRONEOUS
           
static int MTH
           
static int PCK
           
static int TYP
           
static int VAR
           
 
Constructor Summary
Symbol(int kind, int flags, String name, Symbol owner)
           
 
Method Summary
 void complete()
           
 Symbol.TypeSymbol enclosingClass()
          The closest enclosing class.
 int flags()
           
 Symbol.TypeSymbol outermostClass()
          The outermost class which indirectly owns this symbol.
 Symbol owner()
          The owner of this symbol.
 Symbol.PackageSymbol packge()
          The package which indirectly owns this symbol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PCK

public static final int PCK
See Also:
Constant Field Values

TYP

public static final int TYP
See Also:
Constant Field Values

VAR

public static final int VAR
See Also:
Constant Field Values

MTH

public static final int MTH
See Also:
Constant Field Values

ERRONEOUS

public static final int ERRONEOUS
See Also:
Constant Field Values

AMBIGUOUS

public static final int AMBIGUOUS
See Also:
Constant Field Values

ABSENT

public static final int ABSENT
See Also:
Constant Field Values
Constructor Detail

Symbol

public Symbol(int kind,
              int flags,
              @Nullable
              String name,
              @Nullable
              Symbol owner)
Method Detail

flags

public int flags()
See Also:
Flags

owner

public Symbol owner()
The owner of this symbol.


complete

public void complete()

outermostClass

public Symbol.TypeSymbol outermostClass()
The outermost class which indirectly owns this symbol.


packge

public Symbol.PackageSymbol packge()
The package which indirectly owns this symbol.


enclosingClass

public Symbol.TypeSymbol enclosingClass()
The closest enclosing class.



Copyright © 2012-2014 SonarSource. All Rights Reserved.