public class StructureDataRegexp extends StructureData
Modifier and Type | Class and Description |
---|---|
static class |
StructureDataRegexp.Vinfo |
static class |
StructureDataRegexp.VinfoField |
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Matcher |
matcher |
EMPTY, members
Constructor and Description |
---|
StructureDataRegexp(StructureMembers members,
java.util.regex.Matcher m) |
Modifier and Type | Method and Description |
---|---|
double |
convertScalarDouble(StructureMembers.Member m)
Get scalar value as a double, with conversion as needed.
|
float |
convertScalarFloat(StructureMembers.Member m)
Get scalar value as a float, with conversion as needed.
|
int |
convertScalarInt(StructureMembers.Member m)
Get scalar value as a int, with conversion as needed.
|
long |
convertScalarLong(StructureMembers.Member m)
Get scalar value as a int, with conversion as needed.
|
Array |
getArray(StructureMembers.Member m)
Get member data array of any type as an Array.
|
ArraySequence |
getArraySequence(StructureMembers.Member m)
Get ArraySequence for a member of type Sequence.
|
ArrayStructure |
getArrayStructure(StructureMembers.Member m)
Get ArrayStructure for a member of type Structure.
|
byte[] |
getJavaArrayByte(StructureMembers.Member m)
Get java byte array for a member of type byte.
|
char[] |
getJavaArrayChar(StructureMembers.Member m)
Get java char array for a member of type char.
|
double[] |
getJavaArrayDouble(StructureMembers.Member m)
Get java double array for a member of type double.
|
float[] |
getJavaArrayFloat(StructureMembers.Member m)
Get java float array for a member of type float.
|
int[] |
getJavaArrayInt(StructureMembers.Member m)
Get java int array for a member of type int.
|
long[] |
getJavaArrayLong(StructureMembers.Member m)
Get java long array for a member of type long.
|
short[] |
getJavaArrayShort(StructureMembers.Member m)
Get java short array for a member of type short.
|
java.lang.String[] |
getJavaArrayString(StructureMembers.Member m)
Get java array of Strings for a member of type char or String.
|
byte |
getScalarByte(StructureMembers.Member m)
Get member data of type byte.
|
char |
getScalarChar(StructureMembers.Member m)
Get member data of type char.
|
double |
getScalarDouble(StructureMembers.Member m)
Get member data of type double.
|
float |
getScalarFloat(StructureMembers.Member m)
Get member data of type float.
|
int |
getScalarInt(StructureMembers.Member m)
Get member data of type int.
|
long |
getScalarLong(StructureMembers.Member m)
Get member data of type long.
|
short |
getScalarShort(StructureMembers.Member m)
Get member data of type short.
|
java.lang.String |
getScalarString(StructureMembers.Member m)
Get String value, from rank 0 String or rank 1 char member array.
|
StructureData |
getScalarStructure(StructureMembers.Member m)
Get member data of type Structure.
|
protected java.lang.Object |
parse(DataType dt,
StructureDataRegexp.VinfoField vinfo) |
protected java.lang.Object |
parse(DataType dt,
StructureDataRegexp.VinfoField vinfo,
int fldno) |
convertScalarDouble, convertScalarFloat, convertScalarInt, convertScalarLong, findMember, getArray, getArraySequence, getArrayStructure, getJavaArrayByte, getJavaArrayChar, getJavaArrayDouble, getJavaArrayFloat, getJavaArrayInt, getJavaArrayLong, getJavaArrayShort, getJavaArrayString, getMembers, getName, getScalarByte, getScalarChar, getScalarDouble, getScalarFloat, getScalarInt, getScalarLong, getScalarObject, getScalarObject, getScalarShort, getScalarString, getScalarStructure, getStructureMembers, showInternal, showInternalMembers, toString
public StructureDataRegexp(StructureMembers members, java.util.regex.Matcher m)
protected java.lang.Object parse(DataType dt, StructureDataRegexp.VinfoField vinfo) throws java.lang.NumberFormatException
java.lang.NumberFormatException
protected java.lang.Object parse(DataType dt, StructureDataRegexp.VinfoField vinfo, int fldno) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public Array getArray(StructureMembers.Member m)
StructureData
getArray
in class StructureData
m
- get data from this StructureMembers.Member.public float convertScalarFloat(StructureMembers.Member m)
StructureData
convertScalarFloat
in class StructureData
m
- member Variable.public double convertScalarDouble(StructureMembers.Member m)
StructureData
convertScalarDouble
in class StructureData
m
- member Variable.public int convertScalarInt(StructureMembers.Member m)
StructureData
convertScalarInt
in class StructureData
m
- member Variable.public long convertScalarLong(StructureMembers.Member m)
StructureData
convertScalarLong
in class StructureData
m
- member Variable.public double getScalarDouble(StructureMembers.Member m)
StructureData
getScalarDouble
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type double.public double[] getJavaArrayDouble(StructureMembers.Member m)
StructureData
getJavaArrayDouble
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type double.public float getScalarFloat(StructureMembers.Member m)
StructureData
getScalarFloat
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type float.public float[] getJavaArrayFloat(StructureMembers.Member m)
StructureData
getJavaArrayFloat
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type float.public byte getScalarByte(StructureMembers.Member m)
StructureData
getScalarByte
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type byte.public byte[] getJavaArrayByte(StructureMembers.Member m)
StructureData
getJavaArrayByte
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type byte.public int getScalarInt(StructureMembers.Member m)
StructureData
getScalarInt
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type int.public int[] getJavaArrayInt(StructureMembers.Member m)
StructureData
getJavaArrayInt
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type int.public short getScalarShort(StructureMembers.Member m)
StructureData
getScalarShort
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type short.public short[] getJavaArrayShort(StructureMembers.Member m)
StructureData
getJavaArrayShort
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type short.public long getScalarLong(StructureMembers.Member m)
StructureData
getScalarLong
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type long.public long[] getJavaArrayLong(StructureMembers.Member m)
StructureData
getJavaArrayLong
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type long.public char getScalarChar(StructureMembers.Member m)
StructureData
getScalarChar
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type char.public char[] getJavaArrayChar(StructureMembers.Member m)
StructureData
getJavaArrayChar
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type char.public java.lang.String getScalarString(StructureMembers.Member m)
StructureData
getScalarString
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type char or String.public java.lang.String[] getJavaArrayString(StructureMembers.Member m)
StructureData
getJavaArrayString
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type char or String.public StructureData getScalarStructure(StructureMembers.Member m)
StructureData
getScalarStructure
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type Structure.public ArrayStructure getArrayStructure(StructureMembers.Member m)
StructureData
getArrayStructure
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type Structure.public ArraySequence getArraySequence(StructureMembers.Member m)
StructureData
getArraySequence
in class StructureData
m
- get data from this StructureMembers.Member. Must be of type Sequence.