|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.elf.Variable
public class Variable
This class stores all the data necessary for a DWARF variable. This just makes for a simpler structure to use in places like a tree display. Note that this variable is a named data element or parameter that may be of the type structure, array or scalar.
Copyright (c) 2005 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
int |
addr
The variable current address |
byte[] |
addrPgm
The DWARF address program |
int |
declFile
The declaration file number |
int |
declLine
The declaration line number |
java.lang.Integer |
locList
The location list (for non addrPgm[]s) |
java.lang.String |
name
The variable name |
Scope |
scope
The scope of this variable |
VariableType |
type
The type of this variable |
| Constructor Summary | |
|---|---|
Variable(Scope scope)
This constructor creates a variable. |
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
getName()
|
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. |
static Variable |
getVariable(Scope scope,
Tag tag)
This method returns a Variable with data filled in from the ELF /DWARF tag. |
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 variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String name
public int addr
public int declLine
public int declFile
public byte[] addrPgm
public java.lang.Integer locList
public VariableType type
public Scope scope
| Constructor Detail |
|---|
public Variable(Scope scope)
scope - The scope of this variable.| Method Detail |
|---|
public static Variable getVariable(Scope scope,
Tag tag)
scope - The scope for this variable.tag - The ELF /DWARF tag representing this
variable.
public java.lang.String getName()
public java.lang.Object[] getChildren()
TreeViewable
getChildren in interface TreeViewablepublic java.lang.Object getParent()
TreeViewable
getParent in interface TreeViewablepublic boolean hasChildren()
TreeViewable
hasChildren in interface TreeViewablepublic java.lang.String getText()
TreeViewable
getText in interface TreeViewablepublic org.eclipse.swt.graphics.Image getImage()
TreeViewable
getImage in interface 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||