Module Reflection
Provides classes and predicates for working with Java Reflection.
Import path
import semmle.code.java.Reflection
Imports
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
ClassMethodAccess |
A |
NewInstance |
A call to |
ReflectiveAnnotationAccess |
A call to |
ReflectiveClassIdentifierMethodAccess |
A call to a Java standard library method which constructs or returns a |
ReflectiveConstructorsAccess |
A call to |
ReflectiveFieldAccess |
A call to |
ReflectiveMethodAccess |
A call to |
ReflectiveMethodsAccess |
A call to |