|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public final class JavaCore
public static final java.lang.String COMPILER_NULLABLE_ANNOTATION_NAME
This option defines a fully qualified Java type name that the compiler may use to perform special null analysis.
If the annotation specified by this option is applied to a type in a method
signature or variable declaration this will be interpreted as a contract that
null
is a legal value in that position. Currently supported
positions are: method parameters and method return type.
If a value whose type
is annotated with this annotation is dereferenced without checking for null
the compiler will trigger a diagnostic as further controlled by
COMPILER_PB_POTENTIAL_NULL_REFERENCE
.
The compiler may furthermore check adherence to the null contract as further
controlled by COMPILER_PB_NULL_CONTRACT_VIOLATION
,
COMPILER_PB_POTENTIAL_NULL_CONTRACT_VIOLATION
and
COMPILER_PB_NULL_CONTRACT_INSUFFICIENT_INFO
.
"org.eclipse.jdt.core.compiler.annotation.nullable"
"org.eclipse.jdt.annotation.Nullable"
public static final java.lang.String COMPILER_NONNULL_ANNOTATION_NAME
This option defines a fully qualified Java type name that the compiler may use to perform special null analysis.
If the annotation specified by this option is applied to a type in a method
signature or variable declaration this will be interpreted as a contract that
null
is not a legal value in that position. Currently
supported positions are: method parameters and method return type.
For values declared with this annotation the compiler will never trigger a null
reference diagnostic (as controlled by COMPILER_PB_POTENTIAL_NULL_REFERENCE
and COMPILER_PB_NULL_REFERENCE
), because the assumption is made that null
will never occur at runtime in these positions.
The compiler may furthermore check adherence to the null contract as further
controlled by COMPILER_PB_NULL_CONTRACT_VIOLATION
,
COMPILER_PB_POTENTIAL_NULL_CONTRACT_VIOLATION
and
COMPILER_PB_NULL_CONTRACT_INSUFFICIENT_INFO
.
"org.eclipse.jdt.core.compiler.annotation.nonnull"
"org.eclipse.jdt.annotation.NonNull"
public static final java.lang.String COMPILER_EMULATE_NULL_ANNOTATION_TYPES
When enabled, the compiler will use the annotation types specified in
COMPILER_NONNULL_ANNOTATION_NAME
and COMPILER_NULLABLE_ANNOTATION_NAME
without searching for a corresponding type definition, ie., these annotation
types don't have to actually exist.
This option is used to make null contract analysis independent of any additional classes that would otherwise need to be supplied at compile time.
"org.eclipse.jdt.core.compiler.annotation.emulate"
"disabled"
public static final java.lang.String COMPILER_DEFAULT_IMPORT_NULL_ANNOTATION_TYPES
When enabled, the compiler will be able to resolve the annotation types specified in
COMPILER_NONNULL_ANNOTATION_NAME
and COMPILER_NULLABLE_ANNOTATION_NAME
by their simple names without an explicit import statement.
This option is used to avoid mentioning the fully qualified annotation names in any source files, as to facility the migration from one set of annotations to another, e.g., when standard annotations for this purpose will be defined in the future.
"org.eclipse.jdt.core.compiler.annotation.defaultImport"
"disabled"
public static final java.lang.String COMPILER_PB_NULL_CONTRACT_VIOLATION
When enabled, the compiler will issue an error or a warning whenever one of the following situations is detected:
The compiler options COMPILER_NONNULL_ANNOTATION_NAME
and
COMPILER_NULLABLE_ANNOTATION_NAME
control which annotations the compiler
shall interpret as nonnull or nullable annotations, respectively.
"org.eclipse.jdt.core.compiler.problem.nullContractViolation"
{ "error", "warning", "ignore" }
"error"
public static final java.lang.String COMPILER_PB_POTENTIAL_NULL_CONTRACT_VIOLATION
When enabled, the compiler will issue an error or a warning whenever one of the following situations is detected:
The compiler options COMPILER_NONNULL_ANNOTATION_NAME
and
COMPILER_NULLABLE_ANNOTATION_NAME
control which annotations the compiler
shall interpret as nonnull or nullable annotations, respectively.
"org.eclipse.jdt.core.compiler.problem.potentialNullContractViolation"
{ "error", "warning", "ignore" }
"error"
public static final java.lang.String COMPILER_PB_NULL_CONTRACT_INSUFFICIENT_INFO
When enabled, the compiler will issue an error or a warning whenever one of the following situations is detected:
The compiler options COMPILER_NONNULL_ANNOTATION_NAME
and
COMPILER_NULLABLE_ANNOTATION_NAME
control which annotations the compiler
shall interpret as nonnull or nullable annotations, respectively.
"org.eclipse.jdt.core.compiler.problem.nullContractInsufficientInfo"
{ "error", "warning", "ignore" }
"warning"