|
||||||||||
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.ConditionalExpansion
public class ConditionalExpansion
Represents an &IF..&THEN and its code, an &ELSEIF..&THEN and its code, or an &ELSEIF and its code. This might seem backwards, but the "parent" token is the &ENDIF.
Method Summary | |
---|---|
Token |
getFirstCondToken()
The first "condition" token: &IF, &ELSEIF, or &ELSE. |
Token |
getFirstProperToken()
The first "proper" token - the first token to come after the condition. |
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 |
setFirstCondToken(Token token)
|
void |
setFirstProperToken(Token token)
|
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.io.File nearestEnclosingFile()
TETNode
public java.lang.String toStringSub()
Expansion
toStringSub
in class Expansion
public Token getFirstCondToken()
public Token getFirstProperToken()
public void setFirstCondToken(Token token)
getFirstCondToken()
public void setFirstProperToken(Token token)
getFirstProperToken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |