|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.arizona.cs.mbel.signature.Signature
edu.arizona.cs.mbel.signature.Constraint
This class decsribes a constraint on a local var. As of right now, the only possible constraint is ELEMENT_TYPE_PINNED, so this class is kinda useless.
Field Summary |
Constructor Summary | |
Constraint()
Makes a new Constraint (with type PINNED) |
Method Summary | |
void |
emit(ByteBuffer buffer,
ClassEmitter emitter)
Writes this signature out to a buffer in raw binary form |
static byte[] |
encodeInteger(long value)
Converts an unsigned integer to its PackedLen integer equivalent |
byte |
getElementType()
Returns the type of constraint this is (as of now, always ELEMENT_TYPE_PINNED) |
static byte[] |
makeTypeDefOrRefEncoded(int table,
int row)
Turns a {table num, row num} into a TypeDefOrRefEncoded integer value |
static Constraint |
parse(ByteBuffer buffer)
Factory method for parsing a constraint from a raw binary blob |
static int[] |
parseTypeDefOrRefEncoded(ByteBuffer buffer)
Reads a TypeDefOrRefEncoded blob from the given buffer, and returns an int array in the form of {table number, row number} |
static int |
readCodedInteger(ByteBuffer buffer)
Parses a PackedLen coded integer from the given buffer |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Constraint()
Method Detail |
public static Constraint parse(ByteBuffer buffer)
buffer
- the buffer to read from
public byte getElementType()
public void emit(ByteBuffer buffer, ClassEmitter emitter)
buffer
- the buffer to write topublic java.lang.String toString()
public static int readCodedInteger(ByteBuffer buffer)
buffer
- the buffer
public static int[] parseTypeDefOrRefEncoded(ByteBuffer buffer)
buffer
- the buffer to read from
public static byte[] makeTypeDefOrRefEncoded(int table, int row)
table
- the table number (i.e. one of TypeDef, TypeRef, TypeSpec)row
- the row number within the given table (1-based index)
public static byte[] encodeInteger(long value)
value
- the value to convert to PackedLen form
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |