Package hydra.ext.java.syntax
Class ModularCompilationUnit
- java.lang.Object
-
- hydra.ext.java.syntax.ModularCompilationUnit
-
- All Implemented Interfaces:
java.io.Serializable
public class ModularCompilationUnit extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Name
FIELD_NAME_IMPORTS
static Name
FIELD_NAME_MODULE
java.util.List<ImportDeclaration>
imports
ModuleDeclaration
module
static Name
TYPE_NAME
-
Constructor Summary
Constructors Constructor Description ModularCompilationUnit(java.util.List<ImportDeclaration> imports, ModuleDeclaration module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
ModularCompilationUnit
withImports(java.util.List<ImportDeclaration> imports)
ModularCompilationUnit
withModule(ModuleDeclaration module)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_IMPORTS
public static final Name FIELD_NAME_IMPORTS
-
FIELD_NAME_MODULE
public static final Name FIELD_NAME_MODULE
-
imports
public final java.util.List<ImportDeclaration> imports
-
module
public final ModuleDeclaration module
-
-
Constructor Detail
-
ModularCompilationUnit
public ModularCompilationUnit(java.util.List<ImportDeclaration> imports, ModuleDeclaration module)
-
-
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
-
withImports
public ModularCompilationUnit withImports(java.util.List<ImportDeclaration> imports)
-
withModule
public ModularCompilationUnit withModule(ModuleDeclaration module)
-
-