mirror of
https://github.com/github/codeql.git
synced 2026-03-01 05:13:41 +01:00
36 lines
991 B
Plaintext
36 lines
991 B
Plaintext
/**
|
|
* Provides classes and predicates for working with the Guice framework.
|
|
*/
|
|
|
|
import java
|
|
|
|
/**
|
|
* A `@com.google.inject.servlet.RequestParameters` annotation.
|
|
*/
|
|
class GuiceRequestParametersAnnotation extends Annotation {
|
|
GuiceRequestParametersAnnotation() {
|
|
this.getType().hasQualifiedName("com.google.inject.servlet", "RequestParameters")
|
|
}
|
|
}
|
|
|
|
/**
|
|
* The interface `com.google.inject.Provider`.
|
|
*/
|
|
class GuiceProvider extends Interface {
|
|
GuiceProvider() { this.hasQualifiedName("com.google.inject", "Provider") }
|
|
|
|
/**
|
|
* The method named `get` declared on the interface `com.google.inject.Provider`.
|
|
*/
|
|
Method getGetMethod() {
|
|
result.getDeclaringType() = this and result.getName() = "get" and result.hasNoParameters()
|
|
}
|
|
|
|
/**
|
|
* A method that overrides the `get` method on the interface `com.google.inject.Provider`.
|
|
*/
|
|
Method getAnOverridingGetMethod() {
|
|
exists(Method m | m.getSourceDeclaration() = getGetMethod() | result.overrides*(m))
|
|
}
|
|
}
|