Interface JEnumConstant

All Superinterfaces:
JAnnotatable, JCommentable, JDocCommentable, JSimpleArgs
All Known Implementing Classes:
ImplJEnumConstant

public interface JEnumConstant extends JSimpleArgs, JAnnotatable, JDocCommentable
An enum constant definition.
  • Method Details

    • arg

      JEnumConstant arg(JExpr expr)
      Add an argument.
      Specified by:
      arg in interface JSimpleArgs
      Parameters:
      expr - the argument expression
      Returns:
      this program element
    • body

      JClassDef body()
      Add an implementation body to this enum constant.
      Returns:
      the implementation class definition