| Constructor and Description |
|---|
IrVisitorDefault() |
| Modifier and Type | Method and Description |
|---|---|
ru.ispras.fortress.util.TreeVisitor.Status |
getStatus() |
boolean |
isStatus(ru.ispras.fortress.util.TreeVisitor.Status status) |
void |
onAlternativeBegin(PrimitiveOR orRule,
Primitive item)
Notifies that visiting an item of an OR-rule has been started.
|
void |
onAlternativeEnd(PrimitiveOR orRule,
Primitive item)
Notifies that visiting an item of an OR-rule has been finished.
|
void |
onArgumentBegin(PrimitiveAND andRule,
java.lang.String argName,
Primitive argType)
Notifies that visiting an AND-rule argument has been started.
|
void |
onArgumentEnd(PrimitiveAND andRule,
java.lang.String argName,
Primitive argType)
Notifies that visiting an AND-rule argument has been finished.
|
void |
onAssignment(StatementAssignment stmt) |
void |
onAttributeBegin(PrimitiveAND andRule,
Attribute attr)
Notifies that visiting an attribute of an AND-rule has been started.
|
void |
onAttributeCallBegin(StatementAttributeCall stmt) |
void |
onAttributeCallEnd(StatementAttributeCall stmt) |
void |
onAttributeEnd(PrimitiveAND andRule,
Attribute attr)
Notifies that visiting an attribute of an AND-rule has been finished.
|
void |
onBegin() |
void |
onConditionBegin(StatementCondition stmt) |
void |
onConditionBlockBegin(ru.ispras.fortress.expression.Node condition) |
void |
onConditionBlockEnd(ru.ispras.fortress.expression.Node condition) |
void |
onConditionEnd(StatementCondition stmt) |
void |
onEnd() |
void |
onFormat(StatementFormat stmt) |
void |
onFunctionCall(StatementFunctionCall stmt) |
void |
onLetConstant(LetConstant let)
Notifies that a let construct describing a constant value has been visited.
|
void |
onLetLabel(LetLabel let)
Notifies that a let construct associates a symbolic name with a memory location
(in other words, establishes a label).
|
void |
onMemory(java.lang.String name,
MemoryExpr memory)
Notifies that a memory storage has been visited.
|
void |
onPrimitiveBegin(Primitive item)
Notifies that visiting a primitive (object describing a MODE or OP) has been started.
|
void |
onPrimitiveEnd(Primitive item)
Notifies that visiting a primitive has been finished.
|
void |
onPrimitivesBegin()
Notifies that visiting primitives (objects describing MODEs and OPs) has been started.
|
void |
onPrimitivesEnd()
Notifies that visiting primitives (objects describing MODEs and OPs) has been finished.
|
void |
onResourcesBegin()
Notifies that traversing the resource section has been started.
|
void |
onResourcesEnd()
Notifies that traversing the resource section has been finished.
|
void |
onShortcutBegin(PrimitiveAND andRule,
Shortcut shortcut)
Notifies that visiting a shortcut has been started.
|
void |
onShortcutEnd(PrimitiveAND andRule,
Shortcut shortcut)
Notifies that visiting a shortcut has been finished.
|
void |
onStatement(PrimitiveAND andRule,
Attribute attr,
Statement stmt)
Notifies that a statement (in an attribute) has been visited.
|
void |
onType(java.lang.String name,
Type type)
Notifies that a type has been visited.
|
void |
setStatus(ru.ispras.fortress.util.TreeVisitor.Status status) |
public final ru.ispras.fortress.util.TreeVisitor.Status getStatus()
getStatus in interface ru.ispras.fortress.util.TreeVisitorpublic final void setStatus(ru.ispras.fortress.util.TreeVisitor.Status status)
public final boolean isStatus(ru.ispras.fortress.util.TreeVisitor.Status status)
public void onBegin()
onBegin in interface ru.ispras.fortress.util.TreeVisitorpublic void onEnd()
onEnd in interface ru.ispras.fortress.util.TreeVisitorpublic void onResourcesBegin()
IrVisitoronResourcesBegin in interface IrVisitorpublic void onResourcesEnd()
IrVisitoronResourcesEnd in interface IrVisitorpublic void onLetConstant(LetConstant let)
IrVisitoronLetConstant in interface IrVisitorlet - Object describing the constant.public void onLetLabel(LetLabel let)
IrVisitoronLetLabel in interface IrVisitorlet - Object describing the label associated with a memory location.public void onType(java.lang.String name,
Type type)
IrVisitorpublic void onMemory(java.lang.String name,
MemoryExpr memory)
IrVisitorpublic void onPrimitivesBegin()
IrVisitoronPrimitivesBegin in interface IrVisitorpublic void onPrimitivesEnd()
IrVisitoronPrimitivesEnd in interface IrVisitorpublic void onPrimitiveBegin(Primitive item)
IrVisitoronPrimitiveBegin in interface IrVisitoritem - Primitive object describing a MODE or OP.public void onPrimitiveEnd(Primitive item)
IrVisitoronPrimitiveEnd in interface IrVisitoritem - Primitive object.public void onAlternativeBegin(PrimitiveOR orRule, Primitive item)
IrVisitoronAlternativeBegin in interface IrVisitororRule - OR-rule description.item - Item being visited.public void onAlternativeEnd(PrimitiveOR orRule, Primitive item)
IrVisitoronAlternativeEnd in interface IrVisitororRule - OR-rule description.item - Item being visited.public void onArgumentBegin(PrimitiveAND andRule, java.lang.String argName, Primitive argType)
IrVisitoronArgumentBegin in interface IrVisitorandRule - AND-rule description.argName - Argument name.argType - Argument type description.public void onArgumentEnd(PrimitiveAND andRule, java.lang.String argName, Primitive argType)
IrVisitoronArgumentEnd in interface IrVisitorandRule - AND-rule description.argName - Argument name.argType - Argument type description.public void onAttributeBegin(PrimitiveAND andRule, Attribute attr)
IrVisitoronAttributeBegin in interface IrVisitorandRule - AND-rule description.attr - Attribute description.public void onAttributeEnd(PrimitiveAND andRule, Attribute attr)
IrVisitoronAttributeEnd in interface IrVisitorandRule - AND-rule description.attr - Attribute description.public void onStatement(PrimitiveAND andRule, Attribute attr, Statement stmt)
IrVisitoronStatement in interface IrVisitorandRule - AND-rule that contains the statement.attr - Attribute that contains the statement.stmt - Statement description.public void onShortcutBegin(PrimitiveAND andRule, Shortcut shortcut)
IrVisitoronShortcutBegin in interface IrVisitorandRule - AND-rule the shortcut refers to.shortcut - Shortcut description.public void onShortcutEnd(PrimitiveAND andRule, Shortcut shortcut)
IrVisitoronShortcutEnd in interface IrVisitorandRule - AND-rule the shortcut refers to.shortcut - Shortcut description.public void onAssignment(StatementAssignment stmt)
onAssignment in interface IrVisitorpublic void onAttributeCallBegin(StatementAttributeCall stmt)
onAttributeCallBegin in interface IrVisitorpublic void onAttributeCallEnd(StatementAttributeCall stmt)
onAttributeCallEnd in interface IrVisitorpublic void onConditionBegin(StatementCondition stmt)
onConditionBegin in interface IrVisitorpublic void onConditionEnd(StatementCondition stmt)
onConditionEnd in interface IrVisitorpublic void onConditionBlockBegin(ru.ispras.fortress.expression.Node condition)
onConditionBlockBegin in interface IrVisitorpublic void onConditionBlockEnd(ru.ispras.fortress.expression.Node condition)
onConditionBlockEnd in interface IrVisitorpublic void onFormat(StatementFormat stmt)
public void onFunctionCall(StatementFunctionCall stmt)
onFunctionCall in interface IrVisitor