Package hydra.ext.java.syntax
Class ConstantDeclaration
- java.lang.Object
-
- hydra.ext.java.syntax.ConstantDeclaration
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConstantDeclaration>
public class ConstantDeclaration extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ConstantDeclaration>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstantDeclaration(ConsList<ConstantModifier> modifiers, UnannType type, ConsList<VariableDeclarator> variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ConstantDeclaration other)booleanequals(java.lang.Object other)inthashCode()ConstantDeclarationwithModifiers(ConsList<ConstantModifier> modifiers)ConstantDeclarationwithType(UnannType type)ConstantDeclarationwithVariables(ConsList<VariableDeclarator> variables)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
MODIFIERS
public static final Name MODIFIERS
-
TYPE
public static final Name TYPE
-
VARIABLES
public static final Name VARIABLES
-
modifiers
public final ConsList<ConstantModifier> modifiers
-
type
public final UnannType type
-
variables
public final ConsList<VariableDeclarator> variables
-
-
Constructor Detail
-
ConstantDeclaration
public ConstantDeclaration(ConsList<ConstantModifier> modifiers, UnannType type, ConsList<VariableDeclarator> variables)
-
-
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(ConstantDeclaration other)
- Specified by:
compareToin interfacejava.lang.Comparable<ConstantDeclaration>
-
withModifiers
public ConstantDeclaration withModifiers(ConsList<ConstantModifier> modifiers)
-
withType
public ConstantDeclaration withType(UnannType type)
-
withVariables
public ConstantDeclaration withVariables(ConsList<VariableDeclarator> variables)
-
-