Add @Override annotations. No functional changes.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2124 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2011-06-24 04:01:47 +00:00
parent eb38ab75a4
commit b82448037a
7 changed files with 18 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class CellTuple implements HasFields {
this.row = row;
}
@Override
public Object getField(String name, Properties bindings) {
Column column = project.columnModel.getColumnByName(name);
if (column != null) {
@ -62,6 +63,7 @@ public class CellTuple implements HasFields {
return null;
}
@Override
public boolean fieldAlsoHasFields(String name) {
return true;
}

View File

@ -56,10 +56,12 @@ public class EvalError implements Serializable, Jsonizable {
this.message = message;
}
@Override
public String toString() {
return this.message;
}
@Override
public void write(JSONWriter writer, Properties options)
throws JSONException {

View File

@ -39,6 +39,7 @@ import java.util.Properties;
public class HasFieldsListImpl extends ArrayList<HasFields> implements HasFieldsList {
private static final long serialVersionUID = -8635194387420305802L;
@Override
public Object getField(String name, Properties bindings) {
int c = size();
if (c > 0 && get(0) != null && get(0).fieldAlsoHasFields(name)) {
@ -58,15 +59,18 @@ public class HasFieldsListImpl extends ArrayList<HasFields> implements HasFields
}
}
@Override
public int length() {
return size();
}
@Override
public boolean fieldAlsoHasFields(String name) {
int c = size();
return (c > 0 && get(0).fieldAlsoHasFields(name));
}
@Override
public HasFieldsList getSubList(int fromIndex, int toIndex) {
HasFieldsListImpl subList = new HasFieldsListImpl();
subList.addAll(this.subList(fromIndex, toIndex));

View File

@ -85,6 +85,7 @@ abstract public class MetaParser {
return this;
}
@Override
public Object evaluate(Properties bindings) {
try {
return _fn.invoke(

View File

@ -49,10 +49,12 @@ public class WrappedCell implements HasFields {
this.cell = cell;
}
@Override
public Object getField(String name, Properties bindings) {
return cell.getField(name, bindings);
}
@Override
public boolean fieldAlsoHasFields(String name) {
return cell.fieldAlsoHasFields(name);
}

View File

@ -52,6 +52,7 @@ public class WrappedRow implements HasFields {
this.row = row;
}
@Override
public Object getField(String name, Properties bindings) {
if ("cells".equals(name)) {
return new CellTuple(project, row);
@ -70,6 +71,7 @@ public class WrappedRow implements HasFields {
}
}
@Override
public boolean fieldAlsoHasFields(String name) {
return row.fieldAlsoHasFields(name);
}
@ -81,6 +83,7 @@ public class WrappedRow implements HasFields {
_record = record;
}
@Override
public Object getField(String name, Properties bindings) {
if ("cells".equals(name)) {
return new RecordCells(_record);
@ -96,6 +99,7 @@ public class WrappedRow implements HasFields {
return null;
}
@Override
public boolean fieldAlsoHasFields(String name) {
return "cells".equals(name);
}
@ -108,6 +112,7 @@ public class WrappedRow implements HasFields {
_record = record;
}
@Override
public Object getField(String name, Properties bindings) {
Column column = project.columnModel.getColumnByName(name);
if (column != null) {
@ -127,6 +132,7 @@ public class WrappedRow implements HasFields {
return null;
}
@Override
public boolean fieldAlsoHasFields(String name) {
return true;
}

View File

@ -50,6 +50,7 @@ public class OperatorCallExpr implements Evaluable {
_op = op;
}
@Override
public Object evaluate(Properties bindings) {
Object[] args = new Object[_args.length];
for (int i = 0; i < _args.length; i++) {