Package one.nio.serial
Class FieldDescriptor
- java.lang.Object
-
- one.nio.serial.FieldDescriptor
-
public class FieldDescriptor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intindexprivate java.lang.StringnameDescriptorFieldDescriptornextprivate java.lang.reflect.FieldownFieldprivate java.lang.reflect.FieldparentFieldprivate TypeDescriptortypeDescriptor
-
Constructor Summary
Constructors Constructor Description FieldDescriptor(java.lang.reflect.Field ownField, java.lang.reflect.Field parentField, int index)FieldDescriptor(java.lang.String nameDescriptor, TypeDescriptor typeDescriptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignField(java.lang.reflect.Field ownField, java.lang.reflect.Field parentField, int index)intindex()booleanis(java.lang.String nameDescriptor, java.lang.String typeDescriptor)java.lang.Stringname()java.lang.reflect.FieldownField()java.lang.reflect.FieldparentField()static FieldDescriptorread(java.io.ObjectInput in)java.lang.StringtoString()TypeDescriptortype()voidwrite(java.io.ObjectOutput out)
-
-
-
Field Detail
-
nameDescriptor
private java.lang.String nameDescriptor
-
typeDescriptor
private TypeDescriptor typeDescriptor
-
ownField
private java.lang.reflect.Field ownField
-
parentField
private java.lang.reflect.Field parentField
-
index
private int index
-
next
public FieldDescriptor next
-
-
Constructor Detail
-
FieldDescriptor
FieldDescriptor(java.lang.String nameDescriptor, TypeDescriptor typeDescriptor)
-
FieldDescriptor
FieldDescriptor(java.lang.reflect.Field ownField, java.lang.reflect.Field parentField, int index)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
name
public java.lang.String name()
-
type
public TypeDescriptor type()
-
ownField
public java.lang.reflect.Field ownField()
-
parentField
public java.lang.reflect.Field parentField()
-
index
public int index()
-
is
public boolean is(java.lang.String nameDescriptor, java.lang.String typeDescriptor)
-
assignField
public void assignField(java.lang.reflect.Field ownField, java.lang.reflect.Field parentField, int index)
-
read
public static FieldDescriptor read(java.io.ObjectInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(java.io.ObjectOutput out) throws java.io.IOException- Throws:
java.io.IOException
-
-