case class EnumDeclarationNode(modifiers: Seq[ModifierNode], identifier: IdentifierNode, superTypes: Option[TypeListNode], body: EnumBodyNode, labels: Seq[LabelNode] = Seq(), documentation: Option[JavadocCommentNode] = None, comments: Seq[CommentNode] = Seq()) extends MemberDeclarationNode with BlockStatementNode with TypeDeclarationNode with Product with Serializable
An enum declaration.
- identifier
the name of the enum.
- superTypes
the optional super type for this enum.
- body
the enum body.
- Alphabetic
- By Inheritance
- EnumDeclarationNode
- Serializable
- Serializable
- TypeDeclarationNode
- JavadocDocumentableEntity
- BlockStatementNode
- MemberDeclarationNode
- JavaASTNode
- HASTNode
- JsonSerializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
EnumDeclarationNode(modifiers: Seq[ModifierNode], identifier: IdentifierNode, superTypes: Option[TypeListNode], body: EnumBodyNode, labels: Seq[LabelNode] = Seq(), documentation: Option[JavadocCommentNode] = None, comments: Seq[CommentNode] = Seq())
- identifier
the name of the enum.
- superTypes
the optional super type for this enum.
- body
the enum body.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
lazy val
annotations: Seq[AnnotationNode]
The annotations for this member.
The annotations for this member.
- Definition Classes
- MemberDeclarationNode
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bindDocumentation(newDocumentation: Some[JavadocCommentNode]): EnumDeclarationNode
Binds some new documentation to the specific entity.
Binds some new documentation to the specific entity.
- newDocumentation
a new Javadoc documentation node.
- Definition Classes
- EnumDeclarationNode → JavadocDocumentableEntity
-
def
bindLabel(label: LabelNode): EnumDeclarationNode
Binds a new label to this block.
Binds a new label to this block.
- label
a label.
- returns
a new node with the label added.
- Definition Classes
- EnumDeclarationNode → BlockStatementNode
-
def
bindModifiers(newModifiers: Seq[ModifierNode]): EnumDeclarationNode
Binds an additional set of modifiers for this node, constructing a new Member Declaration.
Binds an additional set of modifiers for this node, constructing a new Member Declaration.
- newModifiers
a new set of modifiers to add.
- returns
a new member declaration node with the same attributes of
this
but an additional set of modifiers.
- Definition Classes
- EnumDeclarationNode → MemberDeclarationNode
- val body: EnumBodyNode
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val comments: Seq[CommentNode]
-
lazy val
constantsDeclarations: Seq[EnumConstantNode]
Utility val to access all the constant declarations in the enum body (if any).
Utility val to access all the constant declarations in the enum body (if any).
- Since
2.0.0
-
val
documentation: Option[JavadocCommentNode]
- Definition Classes
- EnumDeclarationNode → JavadocDocumentableEntity
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
lazy val
fieldDeclarations: Seq[FieldDeclarationNode]
Utility val to access all the field declarations in the enum body (if any).
Utility val to access all the field declarations in the enum body (if any).
- Since
2.0.0
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
val
identifier: IdentifierNode
- Definition Classes
- EnumDeclarationNode → TypeDeclarationNode
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
javadocContents: Option[JavadocContentsNode]
Utility method to access directly to javadoc documentation.
Utility method to access directly to javadoc documentation.
- Definition Classes
- JavadocDocumentableEntity
-
lazy val
keywordModifiers: Seq[KeywordModifierNode]
The keyword modifiers for this member.
The keyword modifiers for this member.
- Definition Classes
- MemberDeclarationNode
-
val
labels: Seq[LabelNode]
- Definition Classes
- EnumDeclarationNode → BlockStatementNode
-
lazy val
methodDeclarations: Seq[MethodDeclarationNode]
Utility val to access all the method declarations in the enum body (if any).
Utility val to access all the method declarations in the enum body (if any).
- Since
2.0.0
-
val
modifiers: Seq[ModifierNode]
- Definition Classes
- EnumDeclarationNode → MemberDeclarationNode
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val superTypes: Option[TypeListNode]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
lazy val
toReferenceTypeNode: ReferenceTypeNode
Converts this declaration node to a type node corresponding to the declared type.
Converts this declaration node to a type node corresponding to the declared type.
- Since
2.0.0
-
lazy val
typeDeclarations: Seq[TypeDeclarationNode]
Utility val to access all type declarations in the class body (if any).
Utility val to access all type declarations in the class body (if any).
- Since
2.0.0
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )