|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norecess.citkit.tir.expressions.CallETIR
public class CallETIR
The TIR for a function invocation.
Constructor Summary | |
---|---|
CallETIR(ExpressionTIR function,
java.util.List<? extends ExpressionTIR> arguments)
Basic constructor. |
|
CallETIR(ExpressionTIR function,
java.util.List<? extends ExpressionTIR> arguments,
HobbesType type)
Basic constructor. |
|
CallETIR(IPosition position,
ExpressionTIR function,
java.util.List<? extends ExpressionTIR> arguments,
HobbesType type)
Constructs a function invocation. |
Method Summary | ||
---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor . |
|
boolean |
equals(java.lang.Object o)
|
|
java.util.List<? extends ExpressionTIR> |
getArguments()
Returns the arguments of the function call. |
|
ExpressionTIR |
getFunction()
Returns the function of the function call. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the TIR. |
|
HobbesType |
getType()
Retrieves the type of the expression. |
|
int |
hashCode()
|
|
void |
setType(HobbesType type)
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CallETIR(IPosition position, ExpressionTIR function, java.util.List<? extends ExpressionTIR> arguments, HobbesType type)
position
- the position of the invocation in the source code.function
- the name of the function.arguments
- the list of arguments, as expressions.type
- the type of the expression.public CallETIR(ExpressionTIR function, java.util.List<? extends ExpressionTIR> arguments)
function
- the function to call.arguments
- the arguments to pass in.public CallETIR(ExpressionTIR function, java.util.List<? extends ExpressionTIR> arguments, HobbesType type)
function
- the function to call.arguments
- the arguments to pass in.type
- the type of the function.Method Detail |
---|
public java.util.List<? extends ExpressionTIR> getArguments()
getArguments
in interface ICallETIR
public ExpressionTIR getFunction()
getFunction
in interface ICallETIR
public HobbesType getType()
ExpressionTIR
getType
in interface ExpressionTIR
public void setType(HobbesType type)
setType
in interface ICallETIR
public <T> T accept(ExpressionTIRVisitor<T> visitor)
ExpressionTIR
ExpressionTIRVisitor
.
accept
in interface ExpressionTIR
visitor
- the visitor object.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public IPosition getPosition()
getPosition
in interface HobbesTIR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |