Class BinaryStubData.NameLiteralValue

java.lang.Object
org.checkerframework.framework.stub.BinaryStubData.NameLiteralValue
Enclosing class:
BinaryStubData

public static class BinaryStubData.NameLiteralValue extends Object
A simple name that refers to a constant, written 'n'. It is resolved where the stub file is read, by AnnotationConstants.findConstant: among the fields of the enclosing class and the classes that enclose it, then among the static fields of candidateClasses.
  • Field Details

    • name

      public final String name
      The simple name of the referenced constant.
    • candidateClasses

      public final List<String> candidateClasses
      The fully-qualified names of the classes that the stub file's static imports can import name from, in the order they are searched.
  • Constructor Details

    • NameLiteralValue

      public NameLiteralValue(String name, List<String> candidateClasses)
      Constructs a NameLiteralValue.
      Parameters:
      name - the simple name of the referenced constant
      candidateClasses - the classes that the stub file's static imports can import name from, in the order they are searched
  • Method Details