org.prorefactor.refactor.source
Class MacroExpansion

java.lang.Object
  extended by org.prorefactor.refactor.source.Expansion
      extended by org.prorefactor.refactor.source.MacroExpansion
All Implemented Interfaces:
TETNode

public class MacroExpansion
extends Expansion

A curly reference that is not an include file expansion. In other words, it references a Declaration object: an include arg or an &DEFINE (or possibly multiple Declaration objects with {*}, etc.).


Method Summary
 Declaration getDeclRefd()
           
 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.
 java.lang.String toStringSub()
          Use this method to display the subclass's attributes in XML subnode text (will be subnodes of an node).
 
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

getDeclRefd

public Declaration getDeclRefd()

nearestEnclosingFile

public java.io.File nearestEnclosingFile()
Description copied from interface: TETNode
Find the nearest enclosing File, ignoring that the *actual* text for the Token may have come from a Declaration some number of layers higher. Useful for reporting errors.


toStringSub

public java.lang.String toStringSub()
Description copied from class: Expansion
Use this method to display the subclass's attributes in XML subnode text (will be subnodes of an node).

Specified by:
toStringSub in class Expansion


Copyright © 2008 Joanju Software. All Rights Reserved.