Java: Add more qldoc.

This commit is contained in:
Anders Schack-Mulligen
2020-04-24 14:17:47 +02:00
parent 5af351eacd
commit beab320557
21 changed files with 100 additions and 9 deletions

View File

@@ -152,9 +152,13 @@ deprecated class RemoteUserInput extends UserInput {
RemoteUserInput() { this instanceof RemoteFlowSource }
}
/** Input that may be controlled by a local user. */
/** A node with input that may be controlled by a local user. */
abstract class LocalUserInput extends UserInput { }
/**
* A node with input from the local environment, such as files, standard in,
* environment variables, and main method parameters.
*/
class EnvInput extends LocalUserInput {
EnvInput() {
// Parameters to a main method.
@@ -180,6 +184,7 @@ class EnvInput extends LocalUserInput {
}
}
/** A node with input from a database. */
class DatabaseInput extends LocalUserInput {
DatabaseInput() { this.asExpr().(MethodAccess).getMethod() instanceof ResultSetGetStringMethod }
}
@@ -222,10 +227,12 @@ private class EnvTaintedMethod extends Method {
}
}
/** The type `java.net.InetAddress`. */
class TypeInetAddr extends RefType {
TypeInetAddr() { this.getQualifiedName() = "java.net.InetAddress" }
}
/** A reverse DNS method. */
class ReverseDNSMethod extends Method {
ReverseDNSMethod() {
this.getDeclaringType() instanceof TypeInetAddr and