Package hydra.ext.java.syntax
Class ModuleDeclaration
- java.lang.Object
-
- hydra.ext.java.syntax.ModuleDeclaration
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ModuleDeclaration>
public class ModuleDeclaration extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ModuleDeclaration>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ConsList<Annotation>annotationsstatic NameANNOTATIONSConsList<ConsList<ModuleDirective>>directivesstatic NameDIRECTIVESConsList<Identifier>identifiersstatic NameIDENTIFIERSjava.lang.Booleanopenstatic NameOPENstatic NameTYPE_
-
Constructor Summary
Constructors Constructor Description ModuleDeclaration(ConsList<Annotation> annotations, java.lang.Boolean open, ConsList<Identifier> identifiers, ConsList<ConsList<ModuleDirective>> directives)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ModuleDeclaration other)booleanequals(java.lang.Object other)inthashCode()ModuleDeclarationwithAnnotations(ConsList<Annotation> annotations)ModuleDeclarationwithDirectives(ConsList<ConsList<ModuleDirective>> directives)ModuleDeclarationwithIdentifiers(ConsList<Identifier> identifiers)ModuleDeclarationwithOpen(java.lang.Boolean open)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
ANNOTATIONS
public static final Name ANNOTATIONS
-
OPEN
public static final Name OPEN
-
IDENTIFIERS
public static final Name IDENTIFIERS
-
DIRECTIVES
public static final Name DIRECTIVES
-
annotations
public final ConsList<Annotation> annotations
-
open
public final java.lang.Boolean open
-
identifiers
public final ConsList<Identifier> identifiers
-
directives
public final ConsList<ConsList<ModuleDirective>> directives
-
-
Constructor Detail
-
ModuleDeclaration
public ModuleDeclaration(ConsList<Annotation> annotations, java.lang.Boolean open, ConsList<Identifier> identifiers, ConsList<ConsList<ModuleDirective>> directives)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(ModuleDeclaration other)
- Specified by:
compareToin interfacejava.lang.Comparable<ModuleDeclaration>
-
withAnnotations
public ModuleDeclaration withAnnotations(ConsList<Annotation> annotations)
-
withOpen
public ModuleDeclaration withOpen(java.lang.Boolean open)
-
withIdentifiers
public ModuleDeclaration withIdentifiers(ConsList<Identifier> identifiers)
-
withDirectives
public ModuleDeclaration withDirectives(ConsList<ConsList<ModuleDirective>> directives)
-
-