coins.backend.sym
Class SymStatic

java.lang.Object
  extended bycoins.backend.sym.Symbol
      extended bycoins.backend.sym.SymStatic

public class SymStatic
extends Symbol

Symbol table entry for static objects


Field Summary
(package private)  ModuleElement body
          Body of the function/data.
 java.lang.String linkage
          Indicates whether external or internal
 java.lang.String segment
          Segment name
 
Fields inherited from class coins.backend.sym.Symbol
boundary, id, name, opt, storage, table, type
 
Constructor Summary
(package private) SymStatic(SymTab table, java.lang.String name, int id, int storage, int type, int boundary, java.lang.String segment, java.lang.String linkage, ImList opt)
          Create static objects' symbol entry.
 
Method Summary
 ModuleElement body()
          Return body
 java.lang.String contents()
          Visualize
 void setBody(ModuleElement elem)
          Set function/data body
 java.lang.Object toSexp()
          Convert to external LIR format.
 
Methods inherited from class coins.backend.sym.Symbol
opt, parseSymbol, preSpace, printName, setOpt, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

segment

public final java.lang.String segment
Segment name


linkage

public final java.lang.String linkage
Indicates whether external or internal


body

ModuleElement body
Body of the function/data.

Constructor Detail

SymStatic

SymStatic(SymTab table,
          java.lang.String name,
          int id,
          int storage,
          int type,
          int boundary,
          java.lang.String segment,
          java.lang.String linkage,
          ImList opt)
Create static objects' symbol entry. Only SymTab calls.

Method Detail

body

public ModuleElement body()
Return body


setBody

public void setBody(ModuleElement elem)
Set function/data body


toSexp

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

Specified by:
toSexp in class Symbol

contents

public java.lang.String contents()
Visualize

Specified by:
contents in class Symbol