Package hydra.ext.java.syntax
Class ModuleDeclaration
- java.lang.Object
-
- hydra.ext.java.syntax.ModuleDeclaration
-
- All Implemented Interfaces:
java.io.Serializable
public class ModuleDeclaration extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Annotation>
annotations
java.util.List<java.util.List<ModuleDirective>>
directives
static Name
FIELD_NAME_ANNOTATIONS
static Name
FIELD_NAME_DIRECTIVES
static Name
FIELD_NAME_IDENTIFIERS
static Name
FIELD_NAME_OPEN
java.util.List<Identifier>
identifiers
java.lang.Boolean
open
static Name
TYPE_NAME
-
Constructor Summary
Constructors Constructor Description ModuleDeclaration(java.util.List<Annotation> annotations, java.lang.Boolean open, java.util.List<Identifier> identifiers, java.util.List<java.util.List<ModuleDirective>> directives)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
ModuleDeclaration
withAnnotations(java.util.List<Annotation> annotations)
ModuleDeclaration
withDirectives(java.util.List<java.util.List<ModuleDirective>> directives)
ModuleDeclaration
withIdentifiers(java.util.List<Identifier> identifiers)
ModuleDeclaration
withOpen(java.lang.Boolean open)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_ANNOTATIONS
public static final Name FIELD_NAME_ANNOTATIONS
-
FIELD_NAME_OPEN
public static final Name FIELD_NAME_OPEN
-
FIELD_NAME_IDENTIFIERS
public static final Name FIELD_NAME_IDENTIFIERS
-
FIELD_NAME_DIRECTIVES
public static final Name FIELD_NAME_DIRECTIVES
-
annotations
public final java.util.List<Annotation> annotations
-
open
public final java.lang.Boolean open
-
identifiers
public final java.util.List<Identifier> identifiers
-
directives
public final java.util.List<java.util.List<ModuleDirective>> directives
-
-
Constructor Detail
-
ModuleDeclaration
public ModuleDeclaration(java.util.List<Annotation> annotations, java.lang.Boolean open, java.util.List<Identifier> identifiers, java.util.List<java.util.List<ModuleDirective>> directives)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withAnnotations
public ModuleDeclaration withAnnotations(java.util.List<Annotation> annotations)
-
withOpen
public ModuleDeclaration withOpen(java.lang.Boolean open)
-
withIdentifiers
public ModuleDeclaration withIdentifiers(java.util.List<Identifier> identifiers)
-
withDirectives
public ModuleDeclaration withDirectives(java.util.List<java.util.List<ModuleDirective>> directives)
-
-