Scope

io.joern.javasrc2cpg.scope.Scope
See theScope companion object
class Scope

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addDeclBinding(name: String, declBindingInfo: JavaparserBindingDeclType): Unit
def addInnerType(name: String, typeFullName: String): Unit
def addLambdaMethod(method: Ast): Unit
def addLocalDecl(decl: Ast): Unit
def addTopLevelType(name: String, typeFullName: String): Unit
def addWildcardImport(prefix: String): Unit
def enclosingBlock: Option[BlockScope]
def getCapturesForNewScope(isStaticScope: Boolean): Map[String, CapturedVariable]
def getDeclBinding(name: String): Option[JavaparserBindingDeclType]
def isEnclosingScopeStatic: Boolean
def lambdaMethodsInScope: List[Ast]
def localDeclsInScope: List[Ast]
def lookupMethodName(name: String): List[NewTypeDecl]
def lookupScopeType(simpleName: String): Option[ScopeType]
def lookupScopeType(simpleName: String, includeWildcards: Boolean): Option[ScopeType]
def lookupType(simpleName: String, includeWildcards: Boolean): Option[String]
def lookupVariableOrType(name: String): Option[String]
def pushBlockScope(): Unit
def pushFieldDeclScope(isStatic: Boolean, name: String): Unit
def pushMethodScope(method: NewMethod, returnType: ExpectedType, isStatic: Boolean): Unit
def pushNamespaceScope(namespace: NewNamespaceBlock): Unit
def pushTypeDeclScope(typeDecl: NewTypeDecl, isStatic: Boolean, methodNames: Set[String]): Unit
def registerCaptureUse(capturedVariable: CapturedVariable): Unit
def scopeFullName(dropScopeCount: Int): Option[String]