MethodScope

io.joern.javasrc2cpg.scope.JavaScopeElement.MethodScope
class MethodScope(val method: NewMethod, val returnType: ExpectedType, val isStatic: Boolean)(implicit val withSchemaValidation: ValidationMode, disableTypeFallback: Boolean) extends JavaScopeElement, AnonymousClassCounter

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addParameter(parameter: NewMethodParameterIn, genericSignature: String): Unit
def getAndClearUnaddedPatternLocals(): List[NewLocal]
def getLocalForPattern(typePatternExpr: TypePatternExpr): Option[NewLocal]
def mangleLocalName(originalName: String): String
def registerLocalToAddToCpg(local: NewLocal): Unit
def registerPatternLocal(typePatternExpr: TypePatternExpr, local: NewLocal): Unit

Inherited methods

def addDeclaredTypeType(typeSimpleName: String, isTypeVariable: Boolean): Unit

Attributes

Inherited from:
JavaScopeElement
def addTypeToScope(name: String, scopeType: ScopeType): Unit

Attributes

Inherited from:
JavaScopeElement
def addWildcardImport(prefix: String): Unit

Attributes

Inherited from:
JavaScopeElement
def getDeclaredTypeType(typeSimpleName: String): Option[TypeType]

Attributes

Inherited from:
JavaScopeElement
def getNameWithWildcardPrefix(name: String): Option[ScopeType]

Attributes

Inherited from:
JavaScopeElement

Attributes

Inherited from:
AnonymousClassCounter

Attributes

Inherited from:
JavaScopeElement
def lookupType(name: String, includeWildcards: Boolean): Option[ScopeType]

Attributes

Inherited from:
JavaScopeElement

Attributes

Inherited from:
JavaScopeElement

Concrete fields

override val isStatic: Boolean
val method: NewMethod

Implicits

Implicits

implicit val withSchemaValidation: ValidationMode