public class ConstantStructure
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ConstantStructure.StructureType
Represents a particular type of
ConstantStructure . |
Modifier and Type | Field and Description |
---|---|
protected byte[] |
content |
protected ClassInfo |
parent |
protected ConstantStructure.StructureType |
type |
Constructor and Description |
---|
ConstantStructure(ClassInfo parent,
byte tag,
byte[] content)
Creates a new
ConstantStructure with a type and length inferred from the given byte tag. |
Modifier and Type | Method and Description |
---|---|
static ConstantStructure |
createConstantStructure(ClassInfo parent,
byte tag,
byte[] content) |
byte[] |
getContent()
Gets the content of this
ConstantStructure . |
int |
getLength()
Gets the length in bytes of this
ConstantStructure 's content. |
ClassInfo |
getParent()
Gets the parent
ClassInfo of this ConstantStructure . |
ConstantStructure.StructureType |
getType()
Gets the type of this
ConstantStructure . |
protected final ClassInfo parent
protected final ConstantStructure.StructureType type
protected final byte[] content
public ConstantStructure(ClassInfo parent, byte tag, byte[] content) throws java.lang.IllegalArgumentException
ConstantStructure
with a type and length inferred from the given byte tag.parent
- The parent ClassInfo
of this ConstantStructure
tag
- The byte tag denoting this structure's typecontent
- The content of this ConstantStructure
java.lang.IllegalArgumentException
- If tag
denotes a UTF-8 literal (in this case a specific length must
be supplied)public ClassInfo getParent()
ClassInfo
of this ConstantStructure
.ClassInfo
of this ConstantStructure
public byte[] getContent()
ConstantStructure
.ConstantStructure
.public ConstantStructure.StructureType getType()
ConstantStructure
.ConstantStructure
public int getLength()
ConstantStructure
's content.ConstantStructure
's contentpublic static ConstantStructure createConstantStructure(ClassInfo parent, byte tag, byte[] content)