|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.macrolevel.MacroRef
public abstract class MacroRef
Abstract class for a macro reference. There are two subclasses: one for references to named macros (i.e. those named with &global, &scoped, or an include argument), and one for references to include files.
Field Summary | |
---|---|
java.util.ArrayList<MacroEvent> |
macroEventList
A list of macro references and defines that are in this macro's source |
MacroRef |
parent
|
int |
refColumn
|
int |
refLine
|
Constructor Summary | |
---|---|
protected |
MacroRef()
Only to be used for persistence/serialization. |
Method Summary | |
---|---|
java.util.ArrayList<MacroEvent> |
findExternalMacroReferences()
Find external macro references. |
java.util.ArrayList<MacroEvent> |
findExternalMacroReferences(int[] begin,
int[] end)
|
java.util.ArrayList<IncludeRef> |
findIncludeReferences(int fileIndex)
Find references to an include file by the include file's file index number. |
abstract int |
getFileIndex()
|
int |
getListingFileLine()
|
MacroRef |
getParent()
|
int[] |
getPosition()
Get an int[3] file/line/column position for this macro reference. |
void |
writeXferBytes(DataXferStream out)
Implement Xferable. |
void |
writeXferSchema(DataXferStream out)
Implement Xferable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int refColumn
public int refLine
public MacroRef parent
public java.util.ArrayList<MacroEvent> macroEventList
Constructor Detail |
---|
protected MacroRef()
Method Detail |
---|
public int getListingFileLine()
public MacroRef getParent()
getParent
in interface MacroEvent
public java.util.ArrayList<MacroEvent> findExternalMacroReferences()
public java.util.ArrayList<MacroEvent> findExternalMacroReferences(int[] begin, int[] end)
begin
- An array of two integers to indicate the beginning line/column.
May be null to indicate the beginning of the range is open ended.end
- An array of two integers to indicate the ending line/column.
May be null to indicate the ending of the range is open ended.findExternalMacroReferences()
public java.util.ArrayList<IncludeRef> findIncludeReferences(int fileIndex)
fileIndex
- The fileIndex for the include file we want references to.
public abstract int getFileIndex()
public int[] getPosition() throws RefactorException
getPosition
in interface MacroEvent
RefactorException
public void writeXferBytes(DataXferStream out) throws java.io.IOException
writeXferBytes
in interface Xferable
java.io.IOException
public void writeXferSchema(DataXferStream out) throws java.io.IOException
writeXferSchema
in interface Xferable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |