private class EclipseHack.SourcePropertyOrderer extends java.lang.Object implements EclipseHack.PropertyOrderer
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Callable<java.io.Reader> |
readerProvider |
private javax.lang.model.element.TypeElement |
type |
Constructor and Description |
---|
SourcePropertyOrderer(javax.lang.model.element.TypeElement type,
java.util.concurrent.Callable<java.io.Reader> readerProvider)
Constructs an object that scans the source code of the given type and returns the names of
all abstract methods directly declared in the type (not in nested types).
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<java.lang.String> |
determinePropertyOrder() |
private final javax.lang.model.element.TypeElement type
private final java.util.concurrent.Callable<java.io.Reader> readerProvider
SourcePropertyOrderer(javax.lang.model.element.TypeElement type, java.util.concurrent.Callable<java.io.Reader> readerProvider)
type
- The type whose source is being scanned.readerProvider
- A Callable that returns a Reader that will read the source of the whole
file in which the class is declared.public com.google.common.collect.ImmutableList<java.lang.String> determinePropertyOrder() throws java.io.IOException
determinePropertyOrder
in interface EclipseHack.PropertyOrderer
java.io.IOException