public abstract class ReadField extends Object implements Comparable<ReadField>
Modifier | Constructor and Description |
---|---|
protected |
ReadField(String name,
boolean defaulted)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReadField o)
Compare this field with another on the basis of its name.
|
boolean |
getBoolean()
Get the boolean value of this field.
|
byte |
getByte()
Get the byte value of this field.
|
char |
getChar()
Get the character value of this field.
|
double |
getDouble()
Get the double value of this field.
|
float |
getFloat()
Get the float value of this field.
|
int |
getInt()
Get the integer value of this field.
|
abstract Kind |
getKind()
Get the kind of field represented by this object.
|
long |
getLong()
Get the long value of this field.
|
String |
getName()
Get the field name.
|
Object |
getObject()
Get the object value of this field.
|
short |
getShort()
Get the short value of this field.
|
boolean |
isDefaulted()
Determine whether this field was defaulted.
|
protected ReadField(String name, boolean defaulted)
name
- the field namedefaulted
- true
if the field's value was defaulted, false
otherwisepublic abstract Kind getKind()
public String getName()
public boolean isDefaulted()
true
if this field value was defaulted, false
otherwisepublic boolean getBoolean() throws IOException
IOException
- if the value cannot be readpublic char getChar() throws IOException
IOException
- if the value cannot be readpublic float getFloat() throws IOException
IOException
- if the value cannot be readpublic double getDouble() throws IOException
IOException
- if the value cannot be readpublic byte getByte() throws IOException
IOException
- if the value cannot be readpublic short getShort() throws IOException
IOException
- if the value cannot be readpublic int getInt() throws IOException
IOException
- if the value cannot be readpublic long getLong() throws IOException
IOException
- if the value cannot be readpublic Object getObject() throws IOException
IOException
- if the value cannot be readpublic int compareTo(ReadField o)
compareTo
in interface Comparable<ReadField>
o
- the other field objectCopyright © 2017 JBoss by Red Hat. All rights reserved.