|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.refactor.source.Expansion org.prorefactor.refactor.source.IncludeExpansion
public class IncludeExpansion
Represents a curly reference to an include file. Note that for any one curly that expands to an include file, it is possible (but uncommon) to have multiple expansions. That only happens when the filename itself is a curly expansion with multiple possible values.
Note that this model will also allow for multiple possible expansions due to multiple possible PROPATH configurations. We have no short term plans to implement support for this, but it is an important consideration in the design of this model.
Method Summary | |
---|---|
java.util.Map |
getArgsByName()
The map from an argument name to the argument Declaration object. |
java.util.ArrayList |
getArgsByNumber()
The list of argument Declaration objects that we can refer to by number. |
CompileUnit |
getCompileUnit()
Mostly null, except for the main.p expansion. |
java.lang.String |
getFilenameRefText()
The text used for refering to an include file, in other words, the first token that came after the opening curly. |
SourceFile |
getSourceFile()
|
java.io.File |
nearestEnclosingFile()
Find the nearest enclosing File, ignoring that the *actual* text for the Token may have come from a Declaration some number of layers higher. |
void |
setSourceFile(SourceFile file)
|
java.lang.String |
toStringSub()
Use this method to display the subclass's attributes in XML subnode text (will be subnodes of an |
Methods inherited from class org.prorefactor.refactor.source.Expansion |
---|
getDerivation, getFirstToken, isParsed, isPrimary, setParsed, setPrimary, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.util.Map getArgsByName()
public java.util.ArrayList getArgsByNumber()
public CompileUnit getCompileUnit()
public java.lang.String getFilenameRefText()
public SourceFile getSourceFile()
public java.io.File nearestEnclosingFile()
TETNode
public void setSourceFile(SourceFile file)
public java.lang.String toStringSub()
Expansion
toStringSub
in class Expansion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |