|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.debug.core.pdi.model.aif.AIFFactory
public class AIFFactory
| Nested Class Summary | |
|---|---|
static class |
AIFFactory.SimpleByteBuffer
|
| Constructor Summary | |
|---|---|
AIFFactory()
|
|
| Method Summary | |
|---|---|
static IAIFType |
getAIFType(String fmt)
Construct an AIF type given a FDS. |
static IAIFValue |
getAIFValue(IValueParent parent,
IAIFType type,
AIFFactory.SimpleByteBuffer buffer)
Create a value given a type and a buffer containing the value data. |
static IAIFValue |
getAIFValue(IValueParent parent,
IAIFType type,
byte[] data)
Create a value given a type and an array containing the value data. |
static int |
getFirstNonDigitPos(String format,
int start,
boolean neg)
Find the first character position immediately after an integer in the string starting at position 'pos'. |
static IAIFType |
getType()
Get the last type that was successfully parsed. |
static IAIF |
newAIF(IAIFType aifType,
IAIFValue aifValue)
Create an IAIF object from a type and a value |
static IAIF |
newAIF(IAIFType aifType,
IAIFValue aifValue,
String desc)
Create an IAIF object from a type and a value |
static IAIF |
newAIF(String fds,
byte[] data)
Create an AIF object given an FDS and value data |
static IAIF |
newAIF(String fds,
byte[] data,
String description)
Create an AIF object given an FDS and value data |
static String |
parseType(String fmt)
Parse a complete AIF type from the format descriptor. |
static int |
random_num(int min,
int max)
testing purpose |
static IAIF |
UNKNOWNAIF()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char FDS_ARRAY
public static final char FDS_BOOL
public static final char FDS_CHAR
public static final char FDS_ENUM
public static final char FDS_FLOAT
public static final char FDS_FUNCTION
public static final char FDS_INT
public static final char FDS_POINTER
public static final char FDS_STRING
public static final char FDS_AGGREGATE
public static final char FDS_UNION
public static final char FDS_VOID
public static final char FDS_REFERENCE
public static final char FDS_NAMED
public static final char FDS_ADDRESS
public static final char FDS_RANGE
public static final char FDS_CHAR_POINTER
public static final int FDS_FLOAT_SIZE_POS
public static final int FDS_VOID_SIZE_POS
public static final int FDS_INTEGER_SIGN_POS
public static final int FDS_INTEGER_SIZE_POS
public static final char FDS_ARRAY_END
public static final char FDS_TYPENAME_END
public static final char FDS_AGGREGATE_FIELD_NAME_END
public static final char FDS_AGGREGATE_FIELD_SEP
public static final char FDS_AGGREGATE_ACCESS_SEP
public static final char FDS_AGGREGATE_END
public static final char FDS_UNION_FIELD_NAME_END
public static final char FDS_UNION_FIELD_SEP
public static final char FDS_UNION_END
public static final char FDS_ENUM_CONST_SEP
public static final char FDS_ENUM_SEP
public static final char FDS_ENUM_END
public static final char FDS_FUNCTION_END
public static final char FDS_FUNCTION_ARG_SEP
public static final char FDS_INTEGER_SIGNED
public static final char FDS_INTEGER_UNSIGNED
public static final char FDS_REFERENCE_END
public static final char FDS_NAMED_END
public static final char FDS_RANGE_SEP
public static final int NO_SIZE
public static final int SIZE_BOOL
public static final int SIZE_CHAR
public static final int SIZE_FLOAT
public static final int SIZE_DOUBLE
public static final int SIZE_INVALID
public static final IAIFType UNKNOWNTYPE
public static final IAIFValue UNKNOWNVALUE
| Constructor Detail |
|---|
public AIFFactory()
| Method Detail |
|---|
public static IAIFType getAIFType(String fmt)
throws AIFFormatException
fmt - format descriptor string
AIFFormatException - if the string can't be parsed
public static IAIFValue getAIFValue(IValueParent parent,
IAIFType type,
byte[] data)
parent - parent value (if this value has a parent)type - type of the valuedata - raw data
public static IAIFValue getAIFValue(IValueParent parent,
IAIFType type,
AIFFactory.SimpleByteBuffer buffer)
parent - parent value (if this value has a parent)type - type of the valuebuffer - buffer containing the data
public static int getFirstNonDigitPos(String format,
int start,
boolean neg)
format - format stringstart - position in string to startneg - allow negative numbers
public static IAIFType getType()
public static IAIF newAIF(IAIFType aifType,
IAIFValue aifValue)
aifType - type of the objectaifValue - value of the object
public static IAIF newAIF(IAIFType aifType,
IAIFValue aifValue,
String desc)
aifType - type of the objectaifValue - value of the objectdesc - description
public static IAIF newAIF(String fds,
byte[] data)
throws AIFFormatException
fds - format descriptor stringdata - value data
AIFFormatException - if the FDS can't be parsed
public static IAIF newAIF(String fds,
byte[] data,
String description)
throws AIFFormatException
fds - format descriptor stringdata - value datadescription -
AIFFormatException - if the FDS can't be parsed
public static String parseType(String fmt)
throws AIFFormatException
getType()
fmt - format descriptor
AIFFormatException - if the string can't be parsed
public static int random_num(int min,
int max)
public static IAIF UNKNOWNAIF()
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||