Package org.sonar.php.tree.symbols
Class SymbolTableImpl
java.lang.Object
org.sonar.php.tree.symbols.SymbolTableImpl
- All Implemented Interfaces:
SymbolTable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sonar.plugins.php.api.symbols.SymbolTable
SymbolTable.Framework -
Method Summary
Modifier and TypeMethodDescriptionstatic SymbolTableImplcreate(Collection<ClassSymbolData> classSymbolData, Collection<FunctionSymbolData> functionSymbolData) static SymbolTableImplcreate(CompilationUnitTree compilationUnit) static SymbolTableImplcreate(CompilationUnitTree compilationUnit, ProjectSymbolData projectSymbolData, PhpFile file) static SymbolTableImplcreate(CompilationUnitTree compilationUnit, ProjectSymbolData projectSymbolData, PhpFile file, boolean frameworkDetectionEnabled) getScopeFor(Tree tree) Returns all symbols in scriptgetSymbols(String name) getSymbols(Symbol.Kind kind)
-
Method Details
-
create
-
create
public static SymbolTableImpl create(CompilationUnitTree compilationUnit, ProjectSymbolData projectSymbolData, @Nullable PhpFile file) -
create
public static SymbolTableImpl create(CompilationUnitTree compilationUnit, ProjectSymbolData projectSymbolData, @Nullable PhpFile file, boolean frameworkDetectionEnabled) -
create
public static SymbolTableImpl create(Collection<ClassSymbolData> classSymbolData, Collection<FunctionSymbolData> functionSymbolData) -
getScopes
- Specified by:
getScopesin interfaceSymbolTable
-
getScopeFor
- Specified by:
getScopeForin interfaceSymbolTable
-
getFramework
- Specified by:
getFrameworkin interfaceSymbolTable
-
getSymbols
Returns all symbols in script -
getSymbols
- Specified by:
getSymbolsin interfaceSymbolTable- Parameters:
kind- kind of symbols to look for- Returns:
- list of symbols with the given kind
-
getSymbols
- Parameters:
name- name of symbols to look for- Returns:
- list of symbols with the given name
-
getSymbol
- Specified by:
getSymbolin interfaceSymbolTable
-
classSymbolDatas
-
functionSymbolDatas
-