Module Reflection
Provides classes and predicates for working with Java Reflection.
Import path
import semmle.code.java.ReflectionImports
| DefUse | Provides classes and predicates for def-use and use-use pairs. Built on top of the SSA library for maximal precision. |
| JDKAnnotations | Provides classes that represent standard annotations from the JDK. |
| Serializability | Provides classes and predicates for working with Java Serialization. |
| java | Provides all default Java QL imports. |
Predicates
| inferClassParameterType | Given an expression whose type is |
| referencedInXmlFile | Holds if a field’s name and declaring type are referenced in an XML file. Usually, this implies that the field may be accessed reflectively. |
| reflectivelyRead | Holds if |
| reflectivelyWritten | Holds if |
Classes
| ClassMethodCall | A |
| NewInstance | A call to |
| ReflectiveClassIdentifierMethodCall | A call to a Java standard library method which constructs or returns a |
| ReflectiveGetAnnotationCall | A call to |
| ReflectiveGetConstructorsCall | A call to |
| ReflectiveGetFieldCall | A call to |
| ReflectiveGetMethodCall | A call to |
| ReflectiveGetMethodsCall | A call to |