|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.elf.Scope
public class Scope
This class stores all the data necessary for a DWARF2 scope. 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 | |
|---|---|
static java.lang.String |
copyright
Copyright string |
int |
declFile
The declaration file number |
int |
declLine
The declaration line number |
int |
endAddr
The scope end address |
LocationList |
frameBase
The location list |
java.lang.String |
name
The Scope name |
Scope |
parent
The parent scope (null for top level) |
int |
startAddr
The scope start address |
java.util.Vector |
subscope
Sub-scopes under this scope (type = scope) |
java.util.Vector |
variable
Variables under this scope (type = Variable) |
| Constructor Summary | |
|---|---|
Scope(Scope parent)
This constructor takes the parent scope as its parameter. |
|
| 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.Object |
getParent()
This method returns the parent of this object. |
static Scope |
getScope(Dwarf2 dwarf2,
Scope parent,
Tag tag)
This method returns a scope class from a DWARF2 Tag. |
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 DWARF tag data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
public java.lang.String name
public int startAddr
public int endAddr
public int declLine
public int declFile
public java.util.Vector subscope
public java.util.Vector variable
public Scope parent
public LocationList frameBase
| Constructor Detail |
|---|
public Scope(Scope parent)
parent - The parent scope.| Method Detail |
|---|
public static Scope getScope(Dwarf2 dwarf2,
Scope parent,
Tag tag)
dwarf2 - The DWARF2 object.parent - The parent scope.tag - the DWARF2 tag.
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 | |||||||||