Interface StringToJavaExpression

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface StringToJavaExpression
    This interface is both a functional interface, see toJavaExpression(String), and also a collection of static methods that convert a string to a JavaExpression at common locations.

    Some conversion routines merely do parsing. Other conversion routines parse and then transform the result of parsing into another JavaExpression; for all the static methods, this transformation is viewpoint-adaptation.

    To parse a string "at a location" means to parse it as if it were written in an annotation that is written on that location.