Class CoreAnnotations.CodepointOffsetEndAnnotation

  • All Implemented Interfaces:
    CoreAnnotation<Integer>, TypesafeMap.Key<Integer>
    Enclosing class:
    CoreAnnotations

    public static class CoreAnnotations.CodepointOffsetEndAnnotation
    extends Object
    implements CoreAnnotation<Integer>
    Some codepoints count as more than one character. For example, mathematical symbols. This can cause serious problems in other languages such as Python which see those characters as one character wide.
    This annotation is how many codepoints to the end of the text.
    • Constructor Detail

      • CodepointOffsetEndAnnotation

        public CodepointOffsetEndAnnotation()
    • Method Detail

      • getType

        public Class<Integer> getType()
        Description copied from interface: CoreAnnotation
        Returns the type associated with this annotation. This method must return the same class type as its value type parameter. It feels like one should be able to get away without this method, but because Java erases the generic type signature, that info disappears at runtime.
        Specified by:
        getType in interface CoreAnnotation<Integer>