Package hydra.java.syntax
Class FieldDeclaration
- java.lang.Object
-
- hydra.java.syntax.FieldDeclaration
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FieldDeclaration>
public class FieldDeclaration extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<FieldDeclaration>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<FieldModifier>modifiersstatic NameMODIFIERSName of thehydra.java.syntax.FieldDeclaration.modifiersfield.static NameTYPE_Name of thehydra.java.syntax.FieldDeclarationtype.static NameUNANN_TYPEName of thehydra.java.syntax.FieldDeclaration.unannTypefield.UnannTypeunannTypestatic NameVARIABLE_DECLARATORSName of thehydra.java.syntax.FieldDeclaration.variableDeclaratorsfield.java.util.List<VariableDeclarator>variableDeclarators
-
Constructor Summary
Constructors Constructor Description FieldDeclaration(java.util.List<FieldModifier> modifiers, UnannType unannType, java.util.List<VariableDeclarator> variableDeclarators)Constructs an immutableFieldDeclaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FieldDeclaration other)booleanequals(java.lang.Object other)inthashCode()FieldDeclarationwithModifiers(java.util.List<FieldModifier> modifiers)Returns a copy of thisFieldDeclarationwithmodifiersreplaced.FieldDeclarationwithUnannType(UnannType unannType)Returns a copy of thisFieldDeclarationwithunannTypereplaced.FieldDeclarationwithVariableDeclarators(java.util.List<VariableDeclarator> variableDeclarators)Returns a copy of thisFieldDeclarationwithvariableDeclaratorsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.java.syntax.FieldDeclarationtype.
-
MODIFIERS
public static final Name MODIFIERS
Name of thehydra.java.syntax.FieldDeclaration.modifiersfield.
-
UNANN_TYPE
public static final Name UNANN_TYPE
Name of thehydra.java.syntax.FieldDeclaration.unannTypefield.
-
VARIABLE_DECLARATORS
public static final Name VARIABLE_DECLARATORS
Name of thehydra.java.syntax.FieldDeclaration.variableDeclaratorsfield.
-
modifiers
public final java.util.List<FieldModifier> modifiers
-
unannType
public final UnannType unannType
-
variableDeclarators
public final java.util.List<VariableDeclarator> variableDeclarators
-
-
Constructor Detail
-
FieldDeclaration
public FieldDeclaration(java.util.List<FieldModifier> modifiers, UnannType unannType, java.util.List<VariableDeclarator> variableDeclarators)
Constructs an immutableFieldDeclaration.
-
-
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(FieldDeclaration other)
- Specified by:
compareToin interfacejava.lang.Comparable<FieldDeclaration>
-
withModifiers
public FieldDeclaration withModifiers(java.util.List<FieldModifier> modifiers)
Returns a copy of thisFieldDeclarationwithmodifiersreplaced.
-
withUnannType
public FieldDeclaration withUnannType(UnannType unannType)
Returns a copy of thisFieldDeclarationwithunannTypereplaced.
-
withVariableDeclarators
public FieldDeclaration withVariableDeclarators(java.util.List<VariableDeclarator> variableDeclarators)
Returns a copy of thisFieldDeclarationwithvariableDeclaratorsreplaced.
-
-