class TaskSortClassMembers.Field
Field wrapper used to keep all of the component parts of a field declaration together and allow them to be sorted based on name. Also stores the field ordinal to preserve ordering in case natural ordering fails.
| Type | Name and description |
|---|---|
java.lang.Object |
commentComment lines, accumulated here until the field declaration is located |
java.lang.Object |
indexField ordinal |
java.lang.Object |
initialiserField initialiser, basically whatever is between the field name and the end of the line |
java.lang.Object |
modifiersField modifiers, eg. public static final |
java.lang.Object |
nameField name |
static int |
nextIndexNext field ordinal |
java.lang.Object |
typeField type, basically whatever is between the modifiers and the field name |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Comment lines, accumulated here until the field declaration is located
Field ordinal
Field initialiser, basically whatever is between the field name and the end of the line
Field modifiers, eg. public static final
Field name
Next field ordinal
Field type, basically whatever is between the modifiers and the field name
Returns accumulated field comments as a String. In actual fact we accumulate everything we don't recognise as a field in the "comments" for the field, and this simply returns accumulated content