coins.backend
Class Data

java.lang.Object
  extended bycoins.backend.ModuleElement
      extended bycoins.backend.Data

public class Data
extends ModuleElement

Represent L-Data.


Field Summary
 LirNode[] components
          Contents of (DATA)
 
Fields inherited from class coins.backend.ModuleElement
module, root, sourceLineNo, symbol
 
Constructor Summary
Data(Module module, ImList ptr)
          Parse S-expression DATA description and convert to internal form
Data(Module module, Symbol sym, LirNode value)
          Create new constant/space/zeros object.
 
Method Summary
 boolean apply(LocalTransformer xform)
          Apply some transformation on DATA.
 boolean apply(LocalTransformer xform, ImList args)
          Apply some transformation on DATA with arguments.
 void printIt(java.io.PrintWriter out)
          Dump internal data structure of the Data.
 void printIt(java.io.PrintWriter out, LocalAnalyzer[] anals)
          Dump internal data structure of the Data (Analysis ignored).
 void printStandardForm(java.io.PrintWriter out)
          Print DATA in standard form.
 LirNode scalerValue()
          Return the value if this Data is a scaler, null otherwise.
 java.lang.Object toSexp()
          Convert to external LIR format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

public final LirNode[] components
Contents of (DATA)

Constructor Detail

Data

public Data(Module module,
            ImList ptr)
     throws SyntaxError
Parse S-expression DATA description and convert to internal form


Data

public Data(Module module,
            Symbol sym,
            LirNode value)
Create new constant/space/zeros object.

Method Detail

scalerValue

public LirNode scalerValue()
Return the value if this Data is a scaler, null otherwise.


apply

public boolean apply(LocalTransformer xform,
                     ImList args)
Apply some transformation on DATA with arguments.


apply

public boolean apply(LocalTransformer xform)
Apply some transformation on DATA.


toSexp

public java.lang.Object toSexp()
Convert to external LIR format.

Specified by:
toSexp in class ModuleElement

printStandardForm

public void printStandardForm(java.io.PrintWriter out)
Print DATA in standard form.

Specified by:
printStandardForm in class ModuleElement

printIt

public void printIt(java.io.PrintWriter out)
Dump internal data structure of the Data.

Specified by:
printIt in class ModuleElement

printIt

public void printIt(java.io.PrintWriter out,
                    LocalAnalyzer[] anals)
Dump internal data structure of the Data (Analysis ignored).

Specified by:
printIt in class ModuleElement