Enum Class JavaKeyword

java.lang.Object
java.lang.Enum<JavaKeyword>
com.pnfsoftware.jeb.core.units.code.java.JavaKeyword
All Implemented Interfaces:
Serializable, Comparable<JavaKeyword>, Constable

public enum JavaKeyword extends Enum<JavaKeyword>
Java keywords and reserved tokens.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static JavaKeyword[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JavaKeyword valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • generateClassAccessFlags

      public static void generateClassAccessFlags(JavaOutputSink out, int f, int add_final_space)
    • generateFieldAccessFlags

      public static void generateFieldAccessFlags(JavaOutputSink out, int f, int add_final_space)
    • generateMethodAccessFlags

      public static void generateMethodAccessFlags(JavaOutputSink out, int f, int add_final_space)
    • generateAccessFlags

      public static void generateAccessFlags(JavaOutputSink out, int f, int addFinalSpace, int entityType)
      Generate some Java flags into an AST sink.
      Parameters:
      out - output sink
      f - flags, as defined in JavaFlags
      addFinalSpace - 0=no final space; 1=always append a trailing space; -1=append a trailing space only if the access flags string is not empty
      entityType - the type entity that these access flags apply to: 0=class, 1=field, 2=method
    • appendAccessKeyword

      public static void appendAccessKeyword(JavaOutputSink out, JavaKeyword keyword)
      Generate a Java keyword into an AST sink.
      Parameters:
      out -
      keyword -