|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.core.CodeSelect
public class CodeSelect
Provides methods for selecting surrounding code based on the AST, and shrinking and growing that selection.
| Constructor Summary | |
|---|---|
CodeSelect(int file,
int line,
int col,
PositionIndex index)
|
|
| Method Summary | |
|---|---|
static int[] |
branchEndPos(JPNode node)
Given the top node in a branch, find the file/line/column of the end of the last character of the last node in the branch. |
JPNode |
contract()
Move cursor down tree towards initial position. |
JPNode |
expand()
Move cursor up tree to parent Returns null if already at highest parent node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeSelect(int file,
int line,
int col,
PositionIndex index)
| Method Detail |
|---|
public JPNode contract()
public static int[] branchEndPos(JPNode node)
public JPNode expand()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||