org.norecess.citkit.tir
Interface DeclarationTIR

All Superinterfaces:
HobbesTIR
All Known Subinterfaces:
IFunctionDTIR, ITypeDTIR, IVariableDTIR
All Known Implementing Classes:
FunctionDTIR, TypeDTIR, VariableDTIR

public interface DeclarationTIR
extends HobbesTIR

Intermediate class for all types of declarations. (See known implementations.)

Author:
Jeremy D. Frens

Method Summary
<A> A
accept(DeclarationTIRVisitor<A> visitor)
          Implements the visitor pattern with DeclarationTIRVisitor.
 IPosition getPosition()
          Retrieves the position of the code that generated the TIR.
 

Method Detail

accept

<A> A accept(DeclarationTIRVisitor<A> visitor)
Implements the visitor pattern with DeclarationTIRVisitor.

Parameters:
visitor - the visitor object.
Returns:
the result of visiting the TIR with the visitor.

getPosition

IPosition getPosition()
Retrieves the position of the code that generated the TIR.

Specified by:
getPosition in interface HobbesTIR
Returns:
the position of the code in the source code.