|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.refactor.ScanIncludeRef
public class ScanIncludeRef
Scan an include reference gathering attributes like the entire reference, the string used for the include name, and a string containing all arguments. This does change the scanner's token list. It compacts the file reference string into a single token. This is for working with the include reference's text, not for macro level analysis. For that, see org.prorefactor.refactor.macrolevel.*.
| Field Summary | |
|---|---|
java.lang.String |
argString
The reference arguments, including leading and trailing whitespace Might contain embedded macro references. |
java.lang.String |
entireReference
The entire reference "{...}" Might contain embedded macro references. |
int |
filenameHandle
Handle to the (new) FILENAME token |
int |
leftCurly
Handle to the LEFTCURLY |
int |
rightCurly
Handle to the RIGHTCURLY |
| Constructor Summary | |
|---|---|
ScanIncludeRef(int h)
Create a ScanIncludeRef object with the LEFTCURLY token. |
|
ScanIncludeRef(int[] pos,
int scanNum)
Construct given an int[3] file/line/col position and a scan number |
|
| Method Summary | |
|---|---|
protected void |
compactRefname(int leftcurly)
Compact an include reference filename into one token, set a handle to point at that token. |
void |
markToBeCut()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int filenameHandle
public int leftCurly
public int rightCurly
public java.lang.String argString
public java.lang.String entireReference
| Constructor Detail |
|---|
public ScanIncludeRef(int h)
throws RefactorException
h - a handle to the LEFTCURLY.
RefactorException - if RIGHTCURLY not found.
public ScanIncludeRef(int[] pos,
int scanNum)
throws RefactorException
RefactorException| Method Detail |
|---|
protected void compactRefname(int leftcurly)
throws RefactorException
RefactorException
public void markToBeCut()
throws RefactorException
RefactorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||