CallSite

@native @JSType trait CallSite extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def getColumnNumber(): Double | Null

Current column number [if this function was defined in a script]

Current column number [if this function was defined in a script]

def getEvalOrigin(): UndefOr[String]

A call site object representing the location where eval was called [if this function was created using a call to eval]

A call site object representing the location where eval was called [if this function was created using a call to eval]

def getFileName(): String | Null

Name of the script [if this function was defined in a script]

Name of the script [if this function was defined in a script]

def getFunction(): UndefOr[Function]

Current function

Current function

def getFunctionName(): String | Null

Name of the current function, typically its name property. If a name property is not available an attempt will be made to try to infer a name from the function's context.

Name of the current function, typically its name property. If a name property is not available an attempt will be made to try to infer a name from the function's context.

def getLineNumber(): Double | Null

Current line number [if this function was defined in a script]

Current line number [if this function was defined in a script]

def getMethodName(): String | Null

Name of the property [of "this" or one of its prototypes] that holds the current function

Name of the property [of "this" or one of its prototypes] that holds the current function

def getThis(): Any

Value of "this"

Value of "this"

def getTypeName(): String | Null

Type of "this" as a string. This is the name of the function stored in the constructor field of "this", if available. Otherwise the object's Class internal property.

Type of "this" as a string. This is the name of the function stored in the constructor field of "this", if available. Otherwise the object's Class internal property.

def isConstructor(): Boolean

Is this a constructor call?

Is this a constructor call?

def isEval(): Boolean

Does this call take place in code defined by a call to eval?

Does this call take place in code defined by a call to eval?

def isNative(): Boolean

Is this call in native V8 code?

Is this call in native V8 code?

def isToplevel(): Boolean

Is this a toplevel invocation, that is, is "this" the global object?

Is this a toplevel invocation, that is, is "this" the global object?

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object