SPeCS Packages Documentation
Preparing search index...
@specs-feup/kadabra
kadabra/analysis/energy/detectors/ExcessiveMethodCallsDetector
ExcessiveMethodCallsDetector
Class ExcessiveMethodCallsDetector
Hierarchy (
View Summary
)
BaseDetector
ExcessiveMethodCallsDetector
Index
Constructors
constructor
Properties
current
Package
debug
Enabled
loop
Global
Reads
loop
Global
Writes
loop
Local
Writes
methods
Info
missing
Call
Decl
name
results
variant
Calls
Methods
analyse
analyse
Call
analyse
Class
analyse
Loop
analyse
Loop
Call
analyse
Method
Recursive
analyse
Var
call
Invokes
Variant
Method
call
Uses
Variant
Argument
collect
Loop
Info
compare
Field
Usage
get
Field
Usage
Inside
JP
get
First
Descendents
Of
Types
is
Call
Invariant
print
print
Debug
Info
reset
Detector
save
add
If
New
contains
JP
try
Get
Method
Info
Constructors
constructor
new
ExcessiveMethodCallsDetector
(
debugEnabled
?:
boolean
,
)
:
ExcessiveMethodCallsDetector
Parameters
debugEnabled
:
boolean
= false
Returns
ExcessiveMethodCallsDetector
Properties
current
Package
currentPackage
:
string
|
undefined
debug
Enabled
debugEnabled
:
boolean
loop
Global
Reads
loopGlobalReads
:
Declaration
[]
= []
loop
Global
Writes
loopGlobalWrites
:
Declaration
[]
= []
loop
Local
Writes
loopLocalWrites
:
Declaration
[]
= []
methods
Info
methodsInfo
:
MethodInfo
[]
= []
missing
Call
Decl
missingCallDecl
:
boolean
= false
name
name
:
string
results
results
:
Call
[]
= []
variant
Calls
variantCalls
:
string
[]
= []
Methods
analyse
analyse
()
:
ExcessiveMethodCallsDetector
Returns
ExcessiveMethodCallsDetector
analyse
Call
analyseCall
(
jpCall
:
Call
)
:
void
Parameters
jpCall
:
Call
Returns
void
analyse
Class
analyseClass
(
jpClass
:
Class
)
:
void
Parameters
jpClass
:
Class
Returns
void
analyse
Loop
analyseLoop
(
jpLoop
:
Loop
)
:
void
Parameters
jpLoop
:
Loop
Returns
void
analyse
Loop
Call
analyseLoopCall
(
jp
:
Joinpoint
)
:
boolean
Parameters
jp
:
Joinpoint
Returns
boolean
analyse
Method
Recursive
analyseMethodRecursive
(
jpMethod
:
Method
)
:
{
reads
:
Var
[]
;
writes
:
Var
[]
}
Parameters
jpMethod
:
Method
Returns
{
reads
:
Var
[]
;
writes
:
Var
[]
}
analyse
Var
analyseVar
(
jpVar
:
Var
)
:
void
Parameters
jpVar
:
Var
Returns
void
call
Invokes
Variant
Method
callInvokesVariantMethod
(
jp
:
Joinpoint
)
:
boolean
Parameters
jp
:
Joinpoint
Returns
boolean
call
Uses
Variant
Argument
callUsesVariantArgument
(
jpCall
:
Call
)
:
{
cause
:
string
;
isVariant
:
boolean
}
Parameters
jpCall
:
Call
Returns
{
cause
:
string
;
isVariant
:
boolean
}
collect
Loop
Info
collectLoopInfo
(
jp
:
Joinpoint
)
:
void
Parameters
jp
:
Joinpoint
Returns
void
compare
Field
Usage
compareFieldUsage
(
arr1
:
Joinpoint
[]
,
arr2
:
Joinpoint
[]
)
:
boolean
Parameters
arr1
:
Joinpoint
[]
arr2
:
Joinpoint
[]
Returns
boolean
get
Field
Usage
Inside
JP
getFieldUsageInsideJP
(
jp
:
Joinpoint
,
)
:
{
missing
:
Var
[]
;
read
:
Var
[]
;
write
:
Var
[]
}
Parameters
jp
:
Joinpoint
Returns
{
missing
:
Var
[]
;
read
:
Var
[]
;
write
:
Var
[]
}
get
First
Descendents
Of
Types
getFirstDescendentsOfTypes
(
jp
:
Joinpoint
,
types
:
string
[]
)
:
Joinpoint
[]
Parameters
jp
:
Joinpoint
types
:
string
[]
Returns
Joinpoint
[]
is
Call
Invariant
isCallInvariant
(
jpCall
:
Call
)
:
boolean
Parameters
jpCall
:
Call
Returns
boolean
print
print
()
:
void
Returns
void
print
Debug
Info
printDebugInfo
(
msg
:
string
)
:
void
Parameters
msg
:
string
Returns
void
reset
Detector
resetDetector
()
:
void
Returns
void
save
save
()
:
string
[]
Returns
string
[]
Static
add
If
New
addIfNew
(
arr
:
Joinpoint
[]
,
jp
:
Joinpoint
)
:
void
Parameters
arr
:
Joinpoint
[]
jp
:
Joinpoint
Returns
void
Static
contains
JP
containsJP
(
arr
:
Joinpoint
[]
,
jp
:
Joinpoint
)
:
boolean
Parameters
arr
:
Joinpoint
[]
jp
:
Joinpoint
Returns
boolean
Static
try
Get
Method
Info
tryGetMethodInfo
(
arr
:
MethodInfo
[]
,
jp
:
Method
)
:
MethodInfo
|
null
Parameters
arr
:
MethodInfo
[]
jp
:
Method
Returns
MethodInfo
|
null
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
current
Package
debug
Enabled
loop
Global
Reads
loop
Global
Writes
loop
Local
Writes
methods
Info
missing
Call
Decl
name
results
variant
Calls
Methods
analyse
analyse
Call
analyse
Class
analyse
Loop
analyse
Loop
Call
analyse
Method
Recursive
analyse
Var
call
Invokes
Variant
Method
call
Uses
Variant
Argument
collect
Loop
Info
compare
Field
Usage
get
Field
Usage
Inside
JP
get
First
Descendents
Of
Types
is
Call
Invariant
print
print
Debug
Info
reset
Detector
save
add
If
New
contains
JP
try
Get
Method
Info
SPeCS Packages Documentation
Loading...