|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.sandev.sandbuild.SandDeclTreeWrapper
public class SandDeclTreeWrapper
A wrapper for SandDecl that allows organization into a tree structure. While SandDecls compare on filename, these compare on unqualified name, since a primary use of these tree structures is to show inheritance across projects and the ordering gets weird otherwise.
| Field Summary | |
|---|---|
protected SandDeclTreeWrapper[] |
children
Our SandDeclTreeWrapper children |
protected SandDecl |
decl
The SandDecl we are wrapping |
protected SandDeclTreeWrapper |
parent
Our parent SandDeclTreeWrapper |
| Constructor Summary | |
|---|---|
SandDeclTreeWrapper()
Default ctor does nothing. |
|
SandDeclTreeWrapper(SandDecl decl)
Set our decl to the instance specified. |
|
SandDeclTreeWrapper(SandDeclTreeWrapper sdtw,
SandDecl decl)
Set our parent and decl to the instances specified. |
|
| Method Summary | |
|---|---|
void |
addChild(SandDeclTreeWrapper sdtw)
Add a child, resorting all children to maintain order. |
int |
compareTo(java.lang.Object other)
The natural ordering of SandDeclTreeWrappers is the ordering of the unqualified declaration names. |
SandDeclTreeWrapper[] |
getChildren()
accessor for children |
SandDecl |
getDecl()
accessor for decl |
SandDeclTreeWrapper |
getParent()
accessor for parent |
SandDeclTreeWrapper |
removeChild(int index)
Remove the child at the given index, returning it. |
SandDeclTreeWrapper |
removeChild(SandDeclTreeWrapper sdtw)
Remove the given child. |
void |
setChildren(SandDeclTreeWrapper[] children)
mutator for children |
void |
setDecl(SandDecl decl)
mutator for decl |
void |
setParent(SandDeclTreeWrapper parent)
mutator for parent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SandDecl decl
protected SandDeclTreeWrapper parent
protected SandDeclTreeWrapper[] children
| Constructor Detail |
|---|
public SandDeclTreeWrapper()
public SandDeclTreeWrapper(SandDecl decl)
public SandDeclTreeWrapper(SandDeclTreeWrapper sdtw,
SandDecl decl)
| Method Detail |
|---|
public SandDecl getDecl()
public void setDecl(SandDecl decl)
public SandDeclTreeWrapper getParent()
public void setParent(SandDeclTreeWrapper parent)
public SandDeclTreeWrapper[] getChildren()
public void setChildren(SandDeclTreeWrapper[] children)
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic void addChild(SandDeclTreeWrapper sdtw)
public SandDeclTreeWrapper removeChild(SandDeclTreeWrapper sdtw)
public SandDeclTreeWrapper removeChild(int index)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||