Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Nested Class Summary
`static class` | `CodeRegion.Operand`

Field Summary
`java.util.List` | `operands`
`protected java.util.List` | `stmts`

Constructor Summary
`CodeRegion(java.util.List o, java.util.List s)`

Method Summary
`java.util.List` | `getCode()`
`java.util.Iterator` | `getOperandIterator()`
`java.util.List` | `getOperands()`
`boolean` | `hasBody()`
`int` | `numOperands()`
`void` | `setCode(java.util.List s)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### operands

    public final java.util.List operands

### stmts

    protected java.util.List stmts

Constructor Detail

### CodeRegion

    public CodeRegion(java.util.List o,
                      java.util.List s)

Method Detail

### 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()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD