mirror of
https://github.com/github/codeql.git
synced 2026-03-20 06:26:47 +01:00
26 lines
970 B
Plaintext
26 lines
970 B
Plaintext
/**
|
|
* @name Fetch endpoints for use in the model editor (application mode)
|
|
* @description A list of 3rd party endpoints (methods) used in the codebase. Excludes test and generated code.
|
|
* @kind table
|
|
* @id java/utils/modeleditor/application-mode-endpoints
|
|
* @tags modeleditor endpoints application-mode
|
|
*/
|
|
|
|
private import java
|
|
private import ApplicationModeEndpointsQuery
|
|
private import ModelEditor
|
|
|
|
private Call aUsage(ExternalEndpoint endpoint) {
|
|
result.getCallee().getSourceDeclaration() = endpoint
|
|
}
|
|
|
|
from ExternalEndpoint endpoint, boolean supported, Call usage, string type, string classification
|
|
where
|
|
supported = isSupported(endpoint) and
|
|
usage = aUsage(endpoint) and
|
|
type = supportedType(endpoint) and
|
|
classification = usageClassification(usage)
|
|
select usage, endpoint.getPackageName(), endpoint.getTypeName(), endpoint.getName(),
|
|
endpoint.getParameterTypes(), supported, endpoint.jarContainer(), endpoint.jarVersion(), type,
|
|
classification
|