uk.ac.man.cs.rainbow.compiler.declarations
Class ChannelDeclaration

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.compiler.CompilerThing
        |
        +--uk.ac.man.cs.rainbow.compiler.CompilerNode
              |
              +--uk.ac.man.cs.rainbow.compiler.declarations.Declaration
                    |
                    +--uk.ac.man.cs.rainbow.compiler.declarations.LocalDeclaration
                          |
                          +--uk.ac.man.cs.rainbow.compiler.declarations.ChannelDeclaration

public class ChannelDeclaration
extends LocalDeclaration


Field Summary
 boolean consumer
           
 boolean producer
           
 
Fields inherited from class uk.ac.man.cs.rainbow.compiler.declarations.Declaration
nm
 
Fields inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
next, sourcepos
 
Constructor Summary
ChannelDeclaration()
           
ChannelDeclaration(SourcePosition sourcepos, LocalIdentifier idList, CompilerType spec, boolean producer, boolean consumer)
           
ChannelDeclaration(SourcePosition sourcepos, String nm, CompilerType spec, boolean producer, boolean consumer)
           
 
Method Summary
 String dumpTree(int n)
           
 RASMList green_rasm(GreenEnv env)
           
 RASMList rasm_list_green_rasm(GreenEnv env)
           
 RASMList rasm(CGEnv env)
           
 String toString()
           
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.declarations.LocalDeclaration
getSpec, return_local, setSpec, specList, typecheck_lhs, typecheck
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
append, appendNotParent, dumpNode, getParent, indent, iterator, list_typecheck, list_typecheck, listLength, listToString, noParent, rasm_list, rasm, setParent, typecheck, typecheckGreen, typecheckGreen
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.CompilerThing
className, crashHere, getSerial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

producer

public boolean producer

consumer

public boolean consumer
Constructor Detail

ChannelDeclaration

public ChannelDeclaration(SourcePosition sourcepos,
                          String nm,
                          CompilerType spec,
                          boolean producer,
                          boolean consumer)

ChannelDeclaration

public ChannelDeclaration()

ChannelDeclaration

public ChannelDeclaration(SourcePosition sourcepos,
                          LocalIdentifier idList,
                          CompilerType spec,
                          boolean producer,
                          boolean consumer)
Method Detail

toString

public String toString()
Overrides:
toString in class LocalDeclaration

dumpTree

public String dumpTree(int n)
Overrides:
dumpTree in class CompilerNode

rasm

public RASMList rasm(CGEnv env)
Overrides:
rasm in class CompilerNode

green_rasm

public RASMList green_rasm(GreenEnv env)

rasm_list_green_rasm

public RASMList rasm_list_green_rasm(GreenEnv env)