org.prorefactor.macrolevel
Class MacroDef

java.lang.Object
  extended by org.prorefactor.macrolevel.MacroDef
All Implemented Interfaces:
Xferable, java.io.Serializable, MacroEvent

public class MacroDef
extends java.lang.Object
implements MacroEvent

A macro DEFINE (global or scoped) or UNDEFINE or an include argument (named or numbered/positional).

See Also:
Serialized Form

Field Summary
 int column
           
static int GLOBAL
           
 IncludeRef includeRef
          For an include argument - what include reference is it for?
 int line
           
 java.lang.String name
           
static int NAMEDARG
           
static int NUMBEREDARG
           
 MacroRef parent
          The source where this definition can be found
static int SCOPED
           
 int type
          One of this class's values: GLOBAL, SCOPED, UNDEFINE, NAMEDARG, NUMBEREDARG
static int UNDEFINE
           
 MacroDef undefWhat
          For an UNDEFINE - undef what?
 java.lang.String value
           
 
Constructor Summary
MacroDef()
           
 
Method Summary
 MacroRef getParent()
           
 int[] getPosition()
          Returns int[3] of file/line/column.
 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

GLOBAL

public static final int GLOBAL
See Also:
Constant Field Values

SCOPED

public static final int SCOPED
See Also:
Constant Field Values

UNDEFINE

public static final int UNDEFINE
See Also:
Constant Field Values

NAMEDARG

public static final int NAMEDARG
See Also:
Constant Field Values

NUMBEREDARG

public static final int NUMBEREDARG
See Also:
Constant Field Values

column

public int column

line

public int line

type

public int type
One of this class's values: GLOBAL, SCOPED, UNDEFINE, NAMEDARG, NUMBEREDARG


undefWhat

public MacroDef undefWhat
For an UNDEFINE - undef what?


includeRef

public IncludeRef includeRef
For an include argument - what include reference is it for?


parent

public MacroRef parent
The source where this definition can be found


name

public java.lang.String name

value

public java.lang.String value
Constructor Detail

MacroDef

public MacroDef()
Method Detail

getParent

public MacroRef getParent()
Specified by:
getParent in interface MacroEvent

getPosition

public int[] getPosition()
                  throws RefactorException
Description copied from interface: MacroEvent
Returns int[3] of file/line/column.

Specified by:
getPosition in interface MacroEvent
Throws:
RefactorException

writeXferBytes

public void writeXferBytes(DataXferStream out)
                    throws java.io.IOException
Implement Xferable.

Specified by:
writeXferBytes in interface Xferable
Throws:
java.io.IOException

writeXferSchema

public void writeXferSchema(DataXferStream out)
                     throws java.io.IOException
Implement Xferable.

Specified by:
writeXferSchema in interface Xferable
Throws:
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.