diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-13 14:55:11 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-13 14:55:11 +0000 |
| commit | 7e3a4556f65d03a052c4e5abd165ff4e91da4e93 (patch) | |
| tree | a9c9c9170c2cddca7671bc992cfc1f4f79e1c0fa /src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java | |
| parent | bac463d6b411c2108d56190b5766c9c92eade69d (diff) | |
Remove FieldValue in favour of FieldDeclarationNode
Diffstat (limited to 'src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java')
| -rw-r--r-- | src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java b/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java deleted file mode 100644 index 90a6099..0000000 --- a/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.zwobble.couscous.interpreter.values; - -import org.zwobble.couscous.ast.TypeName; - -public final class FieldValue { - private final boolean isStatic; - private final String name; - private final TypeName type; - - public FieldValue(final boolean isStatic, final String name, final TypeName type) { - this.isStatic = isStatic; - this.name = name; - this.type = type; - } - - public boolean isStatic() { - return isStatic; - } - - public String getName() { - return this.name; - } - - public TypeName getType() { - return this.type; - } - - @Override - public String toString() { - return "FieldValue(" + - "isStatic=" + isStatic + - ", name='" + name + '\'' + - ", type=" + type + - ')'; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - FieldValue that = (FieldValue) o; - - if (isStatic != that.isStatic) return false; - if (!name.equals(that.name)) return false; - return type.equals(that.type); - - } - - @Override - public int hashCode() { - int result = (isStatic ? 1 : 0); - result = 31 * result + name.hashCode(); - result = 31 * result + type.hashCode(); - return result; - } -}
\ No newline at end of file |
