Package hydra.ext.java.syntax
Class ConstantDeclaration
- java.lang.Object
-
- hydra.ext.java.syntax.ConstantDeclaration
-
- All Implemented Interfaces:
java.io.Serializable
public class ConstantDeclaration extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Name
FIELD_NAME_MODIFIERS
static Name
FIELD_NAME_TYPE
static Name
FIELD_NAME_VARIABLES
java.util.List<ConstantModifier>
modifiers
UnannType
type
static Name
TYPE_NAME
java.util.List<VariableDeclarator>
variables
-
Constructor Summary
Constructors Constructor Description ConstantDeclaration(java.util.List<ConstantModifier> modifiers, UnannType type, java.util.List<VariableDeclarator> variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
ConstantDeclaration
withModifiers(java.util.List<ConstantModifier> modifiers)
ConstantDeclaration
withType(UnannType type)
ConstantDeclaration
withVariables(java.util.List<VariableDeclarator> variables)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_MODIFIERS
public static final Name FIELD_NAME_MODIFIERS
-
FIELD_NAME_TYPE
public static final Name FIELD_NAME_TYPE
-
FIELD_NAME_VARIABLES
public static final Name FIELD_NAME_VARIABLES
-
modifiers
public final java.util.List<ConstantModifier> modifiers
-
type
public final UnannType type
-
variables
public final java.util.List<VariableDeclarator> variables
-
-
Constructor Detail
-
ConstantDeclaration
public ConstantDeclaration(java.util.List<ConstantModifier> modifiers, UnannType type, java.util.List<VariableDeclarator> variables)
-
-
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
-
withModifiers
public ConstantDeclaration withModifiers(java.util.List<ConstantModifier> modifiers)
-
withType
public ConstantDeclaration withType(UnannType type)
-
withVariables
public ConstantDeclaration withVariables(java.util.List<VariableDeclarator> variables)
-
-