|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.elf.VariableType
com.cmpware.elf.MemberType
public class MemberType
This class stores all the data necessary for a DWARF structure member. This just makes for a simpler structure to use in places like a tree display.
Copyright (c) 2005 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
byte[] |
addrOffsetPgm
The DWARF data member location offset address program |
int |
declFile
The declaration file number |
int |
declLine
The declaration line number |
VariableType |
memberType
The structure member type |
| Fields inherited from class com.cmpware.elf.VariableType |
|---|
addrOffset, byteSize, CONST, modifierName, modifiers, name, NONE, parent, POINTER, variable, VOLATILE |
| Constructor Summary | |
|---|---|
MemberType()
|
|
MemberType(MemberType mt)
|
|
| Method Summary | |
|---|---|
static int |
getAddrOffset(byte[] addrPgm)
This method returns the address offset given the address offset program. |
java.lang.Object[] |
getChildren()
This method returns the children of this object. |
org.eclipse.swt.graphics.Image |
getImage()
This method returns an image used as a decorator. |
static MemberType |
getMemberType(VariableType parent,
Variable variable,
Tag tag)
This method returns a structure member with data filled in from the ELF /DWARF tag. |
java.lang.Object |
getParent()
This method returns the parent of this object. |
java.lang.String |
getText()
This method returns the text string associated with this object. |
boolean |
hasChildren()
This method returns true if this object has children and false otherwise. |
java.lang.String |
toString(int addrBytes,
boolean byteSwap)
This method returns a string representation of the structure member. |
| Methods inherited from class com.cmpware.elf.VariableType |
|---|
getName, getVariableType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int declLine
public int declFile
public byte[] addrOffsetPgm
public VariableType memberType
| Constructor Detail |
|---|
public MemberType()
public MemberType(MemberType mt)
| Method Detail |
|---|
public static MemberType getMemberType(VariableType parent,
Variable variable,
Tag tag)
tag - The ELF /DWARF tag representing this
structure member.
public java.lang.Object[] getChildren()
TreeViewable
public java.lang.Object getParent()
TreeViewable
public boolean hasChildren()
TreeViewable
public java.lang.String getText()
TreeViewable
public org.eclipse.swt.graphics.Image getImage()
TreeViewable
public java.lang.String toString(int addrBytes,
boolean byteSwap)
addrBytes - the number of bytes in an address.byteSwap - the byte swappting flag from the ELF file.
public static int getAddrOffset(byte[] addrPgm)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||