checker.src.org.checkerframework.checker.signature.qual.InternalForm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker Show documentation
Show all versions of checker Show documentation
The Checker Framework enhances Java’s type system to
make it more powerful and useful. This lets software developers
detect and prevent errors in their Java programs.
The Checker Framework includes compiler plug-ins ("checkers")
that find bugs or verify their absence. It also permits you to
write your own compiler plug-ins.
package org.checkerframework.checker.signature.qual;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import org.checkerframework.framework.qual.ImplicitFor;
import org.checkerframework.framework.qual.SubtypeOf;
/**
* The syntax for binary names that appears in a class file, as defined in
* the JVM
* Specification, section 4.2. A {@linkplain BinaryName binary name}
* is conceptually the name for the class or interface in a compiled binary,
* but the actual representation of that name in its class file is slightly
* different.
*
*
* Internal form is the same as the binary name, but with periods
* (.
) replaced by forward slashes (/
).
*
*
* Programmers more often use the binary name, leaving the internal form as
* a JVM implementation detail.
*
* @see BinaryName
* @checker_framework.manual #signature-checker Signature Checker
*/
@SubtypeOf(SignatureUnknown.class)
@ImplicitFor(stringPatterns="^[A-Za-z_][A-Za-z_0-9]*(/[A-Za-z_][A-Za-z_0-9]*)*(\\$[A-Za-z_0-9]+)*(\\[\\])*$")
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
public @interface InternalForm {}