public abstract class ReadField extends java.lang.Object implements java.lang.Comparable<ReadField>
Modifier | Constructor and Description |
---|---|
protected |
ReadField(java.lang.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.
|
java.lang.String |
getName()
Get the field name.
|
java.lang.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(java.lang.String name, boolean defaulted)
name
- the field namedefaulted
- true
if the field's value was defaulted, false
otherwisepublic abstract Kind getKind()
public java.lang.String getName()
public boolean isDefaulted()
true
if this field value was defaulted, false
otherwisepublic boolean getBoolean() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic char getChar() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic float getFloat() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic double getDouble() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic byte getByte() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic short getShort() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic int getInt() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic long getLong() throws java.io.IOException
java.io.IOException
- if the value cannot be readpublic java.lang.Object getObject() throws java.io.IOException
java.io.IOException
- if the value cannot be readCopyright © 2011 JBoss, a division of Red Hat, Inc.