avrora.core.isdl
Class InstrDecl

java.lang.Object
  extended byavrora.core.isdl.CodeRegion
      extended byavrora.core.isdl.InstrDecl

public class InstrDecl
extends CodeRegion

The InstrDecl class represents the declaration of an instruction in an instruction set description language file. It include a description of the encoding format of the instruction as well as a block of IR code that describe how to execute the instruction.


Nested Class Summary
 
Nested classes inherited from class avrora.core.isdl.CodeRegion
CodeRegion.Operand
 
Field Summary
 java.lang.String className
           
 int cycles
           
 EncodingDecl encoding
           
 java.lang.String innerClassName
           
 Token name
          The name field stores a string representing the name of the instruction.
 Token variant
          The variant field stores a string representing the variant name of this instruction.
 
Fields inherited from class avrora.core.isdl.CodeRegion
operands, stmts
 
Constructor Summary
InstrDecl(Token n, Token v, java.util.List o, Token c, java.util.List s, EncodingDecl e)
          The constructor of the InstrDecl class initializes the fields based on the parameters.
 
Method Summary
 java.lang.String getClassName()
           
 int getEncodingSize()
           
 java.lang.String getInnerClassName()
           
 
Methods inherited from class avrora.core.isdl.CodeRegion
getCode, getOperandIterator, getOperands, hasBody, numOperands, setCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final Token name
The name field stores a string representing the name of the instruction.


variant

public final Token variant
The variant field stores a string representing the variant name of this instruction.


encoding

public EncodingDecl encoding

className

public final java.lang.String className

innerClassName

public final java.lang.String innerClassName

cycles

public final int cycles
Constructor Detail

InstrDecl

public InstrDecl(Token n,
                 Token v,
                 java.util.List o,
                 Token c,
                 java.util.List s,
                 EncodingDecl e)
The constructor of the InstrDecl class initializes the fields based on the parameters.

Parameters:
n - the name of the instruction as a string
v - the variant of the instruction as a string
Method Detail

getEncodingSize

public int getEncodingSize()

getClassName

public java.lang.String getClassName()

getInnerClassName

public java.lang.String getInnerClassName()