mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-06 08:18:41 +07:00
Renamed columns to fields
This commit is contained in:
@ -52,14 +52,14 @@ final class SchemaElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Collection<FieldElement> collectFieldElements(Context context, TypeElement typeElement) {
|
static Collection<FieldElement> collectFieldElements(Context context, TypeElement typeElement) {
|
||||||
Collection<FieldElement> columns = new ArrayList<>();
|
Collection<FieldElement> fields = new ArrayList<>();
|
||||||
TypeElement superclassElement = typeElement;
|
TypeElement superclassElement = typeElement;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
for (Element e : superclassElement.getEnclosedElements()) {
|
for (Element e : superclassElement.getEnclosedElements()) {
|
||||||
switch (e.getKind()) {
|
switch (e.getKind()) {
|
||||||
case FIELD:
|
case FIELD:
|
||||||
FieldElement field = FieldElement.get(context, (VariableElement) e);
|
FieldElement field = FieldElement.get(context, (VariableElement) e);
|
||||||
if (field != null) columns.add(field);
|
if (field != null) fields.add(field);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@ final class SchemaElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return columns;
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
final TypeElement element;
|
final TypeElement element;
|
||||||
|
Reference in New Issue
Block a user