avrora.core.isdl
Class CodeRegion
java.lang.Object
avrora.core.isdl.CodeRegion
- Direct Known Subclasses:
- InstrDecl, SubroutineDecl
- public class CodeRegion
- extends java.lang.Object
The CodeRegion
class represents a piece of code that has external inputs. For example, a
subroutine is a piece of code that has a list of statements and a list of formal parameters. An instruction
declaration is a code region where the external inputs are the operands to the instruction.
Field Summary |
java.util.List |
operands
|
protected java.util.List |
stmts
|
Constructor Summary |
CodeRegion(java.util.List o,
java.util.List s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operands
public final java.util.List operands
stmts
protected java.util.List stmts
CodeRegion
public CodeRegion(java.util.List o,
java.util.List s)
numOperands
public int numOperands()
getOperands
public java.util.List getOperands()
getOperandIterator
public java.util.Iterator getOperandIterator()
getCode
public java.util.List getCode()
setCode
public void setCode(java.util.List s)
hasBody
public boolean hasBody()