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.TreeVisitor
public 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.TreeVisitor
public void onEnd()
onEnd
in interface ru.ispras.fortress.util.TreeVisitor
public void onResourcesBegin()
IrVisitor
onResourcesBegin
in interface IrVisitor
public void onResourcesEnd()
IrVisitor
onResourcesEnd
in interface IrVisitor
public void onLetConstant(LetConstant let)
IrVisitor
onLetConstant
in interface IrVisitor
let
- Object describing the constant.public void onLetLabel(LetLabel let)
IrVisitor
onLetLabel
in interface IrVisitor
let
- Object describing the label associated with a memory location.public void onType(java.lang.String name, Type type)
IrVisitor
public void onMemory(java.lang.String name, MemoryExpr memory)
IrVisitor
public void onPrimitivesBegin()
IrVisitor
onPrimitivesBegin
in interface IrVisitor
public void onPrimitivesEnd()
IrVisitor
onPrimitivesEnd
in interface IrVisitor
public void onPrimitiveBegin(Primitive item)
IrVisitor
onPrimitiveBegin
in interface IrVisitor
item
- Primitive object describing a MODE or OP.public void onPrimitiveEnd(Primitive item)
IrVisitor
onPrimitiveEnd
in interface IrVisitor
item
- Primitive object.public void onAlternativeBegin(PrimitiveOR orRule, Primitive item)
IrVisitor
onAlternativeBegin
in interface IrVisitor
orRule
- OR-rule description.item
- Item being visited.public void onAlternativeEnd(PrimitiveOR orRule, Primitive item)
IrVisitor
onAlternativeEnd
in interface IrVisitor
orRule
- OR-rule description.item
- Item being visited.public void onArgumentBegin(PrimitiveAND andRule, java.lang.String argName, Primitive argType)
IrVisitor
onArgumentBegin
in interface IrVisitor
andRule
- AND-rule description.argName
- Argument name.argType
- Argument type description.public void onArgumentEnd(PrimitiveAND andRule, java.lang.String argName, Primitive argType)
IrVisitor
onArgumentEnd
in interface IrVisitor
andRule
- AND-rule description.argName
- Argument name.argType
- Argument type description.public void onAttributeBegin(PrimitiveAND andRule, Attribute attr)
IrVisitor
onAttributeBegin
in interface IrVisitor
andRule
- AND-rule description.attr
- Attribute description.public void onAttributeEnd(PrimitiveAND andRule, Attribute attr)
IrVisitor
onAttributeEnd
in interface IrVisitor
andRule
- AND-rule description.attr
- Attribute description.public void onStatement(PrimitiveAND andRule, Attribute attr, Statement stmt)
IrVisitor
onStatement
in interface IrVisitor
andRule
- AND-rule that contains the statement.attr
- Attribute that contains the statement.stmt
- Statement description.public void onShortcutBegin(PrimitiveAND andRule, Shortcut shortcut)
IrVisitor
onShortcutBegin
in interface IrVisitor
andRule
- AND-rule the shortcut refers to.shortcut
- Shortcut description.public void onShortcutEnd(PrimitiveAND andRule, Shortcut shortcut)
IrVisitor
onShortcutEnd
in interface IrVisitor
andRule
- AND-rule the shortcut refers to.shortcut
- Shortcut description.public void onAssignment(StatementAssignment stmt)
onAssignment
in interface IrVisitor
public void onAttributeCallBegin(StatementAttributeCall stmt)
onAttributeCallBegin
in interface IrVisitor
public void onAttributeCallEnd(StatementAttributeCall stmt)
onAttributeCallEnd
in interface IrVisitor
public void onConditionBegin(StatementCondition stmt)
onConditionBegin
in interface IrVisitor
public void onConditionEnd(StatementCondition stmt)
onConditionEnd
in interface IrVisitor
public void onConditionBlockBegin(ru.ispras.fortress.expression.Node condition)
onConditionBlockBegin
in interface IrVisitor
public void onConditionBlockEnd(ru.ispras.fortress.expression.Node condition)
onConditionBlockEnd
in interface IrVisitor
public void onFormat(StatementFormat stmt)
public void onFunctionCall(StatementFunctionCall stmt)
onFunctionCall
in interface IrVisitor