Class Java

java.lang.Object
org.codehaus.janino.Java

public final class Java extends Object
This wrapper class defines classes that represent the elements of the Java programming language.

Notice: "JLS7" refers to the Java Language Specification, Java SE 7 Edition.

  • Constructor Details

    • Java

      private Java()
  • Method Details

    • join

      public static String join(Object[] a, String separator)
      Returns:
      null iff a == null, or "" iff a.length == 0, or the elements of a, converted to strings concatenated and separated with the separator
    • join

      public static String join(Object[][] aa, String innerSeparator, String outerSeparator)
      Returns:
      null iff aa == null, or "" iff aa.length == 0, or the elements of aa, converted to strings concatenated and separated with the outerSeparator
    • join

      public static String join(Object[] a, String separator, int off, int len)
      Returns:
      "" iff off >= len, or elements off ... len-1 of a, converted to strings, concatenated and separated with the separator
    • accessModifiers

      public static Java.AccessModifier[] accessModifiers(Location location, String... keywords)
      Returns:
      An array of Java.Modifiers, parsed from a sequence of access modifier keywords
    • hasAccessModifier

      private static boolean hasAccessModifier(Java.Modifier[] modifiers, String... keywords)
      Returns:
      Whether the modifiers contain any of the access modifier keywords
    • getAnnotations

      private static Java.Annotation[] getAnnotations(Java.Modifier[] modifiers)
    • modifiers2Access

      private static Access modifiers2Access(Java.Modifier[] modifiers)
    • toString

      private static String toString(Java.Modifier[] modifiers)