Package org.sonar.php.tree.symbols
Class Scope
java.lang.Object
org.sonar.php.tree.symbols.Scope
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetSymbol(String name, Symbol.Kind... kinds) returns symbol available in this scope with satisfying name and kind.getSymbols(Symbol.Kind kind) booleanbooleanisGlobal()outer()tree()
-
Field Details
-
symbols
-
-
Constructor Details
-
Scope
-
Scope
Used for global scope
-
-
Method Details
-
tree
-
outer
-
getSymbols
- Parameters:
kind- of the symbols to look for- Returns:
- the symbols corresponding to the given kind
-
isGlobal
public boolean isGlobal() -
addSymbol
-
getSymbol
returns symbol available in this scope with satisfying name and kind. If no or more than one symbols meet conditions, then null is returned. -
hasUnresolvedCompact
public boolean hasUnresolvedCompact()
-