|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.refactor.source.Expansion
public abstract class Expansion
An expansion is just a bunch of Token objects. Whether those came from a .p/.i, a macro expansion, or a branch of an &IF block, depends on the Expansion type: IncludeExpansion, MacroExpansion, ConditionalExpansion.
For any given curly expansion, there may be more than one way to expand it, depending on if its declaration(s) are found within conditional compile branches (&IF). Usually there's just one.
| Method Summary | |
|---|---|
Expansion[] |
getDerivation()
Get the array of Expansion objects which were used for finding the text for nested tokens within the curly ref that this expansion is for. |
Token |
getFirstToken()
The first token in the chain of tokens which resulted from this expansion. |
boolean |
isParsed()
Has this expansion (possibly an alternative branch) been parsed? (i.e. |
boolean |
isPrimary()
When there's alternative expansions, we want to know whether this is the branch used by the configuration we got when we did parser.parse(). |
void |
setParsed(boolean isParsed)
|
void |
setPrimary(boolean isPrimary)
|
java.lang.String |
toString()
XML node text for the Expansion. |
abstract 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.prorefactor.refactor.source.TETNode |
|---|
nearestEnclosingFile |
| Method Detail |
|---|
public Expansion[] getDerivation()
public Token getFirstToken()
public boolean isParsed()
public boolean isPrimary()
public void setParsed(boolean isParsed)
isParsed()public void setPrimary(boolean isPrimary)
isPrimary()public java.lang.String toString()
toString in class java.lang.ObjecttoStringSub()public abstract java.lang.String toStringSub()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||