public class SystemGetPropertyHandler extends Object
System.getProperty(String)
invocations.
The result of the method call is is assumed to be non-null if the argument is a literal key
that is guaranteed to be present in the system properties (according to the documentation of
System.getProperty(String)
), as in System.getProperties("line.separator")
.
Modifier and Type | Field and Description |
---|---|
protected ProcessingEnvironment |
env |
protected NullnessAnnotatedTypeFactory |
factory |
protected ExecutableElement |
systemGetProperty |
Constructor and Description |
---|
SystemGetPropertyHandler(ProcessingEnvironment env,
NullnessAnnotatedTypeFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
handle(MethodInvocationTree tree,
AnnotatedTypeMirror.AnnotatedExecutableType method) |
protected final ProcessingEnvironment env
protected final NullnessAnnotatedTypeFactory factory
protected final ExecutableElement systemGetProperty
public SystemGetPropertyHandler(ProcessingEnvironment env, NullnessAnnotatedTypeFactory factory)
public void handle(MethodInvocationTree tree, AnnotatedTypeMirror.AnnotatedExecutableType method)