|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.analysis.AnswerAdapter<String>
tip.display.NodeText<T>
T
- type of node for which the NodeText
appliespublic class NodeText<T extends Node>
NodeText
implements the Answer
and Stringifier
interfaces to support a custom textual representation of nodes.
Constructor Summary | |
---|---|
NodeText()
|
Method Summary | |
---|---|
String |
caseABinopExp(ABinopExp node)
Returns the default answer for a ABinopExp node. |
String |
caseADeclStm(ADeclStm node)
Returns the default answer for a ADeclStm node. |
String |
caseADerefExp(ADerefExp node)
Returns the default answer for a ADerefExp node. |
String |
caseAFunctionCallExp(AFunctionCallExp node)
Returns the default answer for a AFunctionCallExp node. |
String |
caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
Returns the default answer for a AFunctionPtrCallExp node. |
String |
caseAIfThenElseStm(AIfThenElseStm node)
Returns the default answer for a AIfThenElseStm node. |
String |
caseAIfThenStm(AIfThenStm node)
Returns the default answer for a AIfThenStm node. |
String |
caseAInputExp(AInputExp node)
Returns the default answer for a AInputExp node. |
String |
caseAIntConstExp(AIntConstExp node)
Returns the default answer for a AIntConstExp node. |
String |
caseALocalDecl(ALocalDecl node)
Returns the default answer for a ALocalDecl node. |
String |
caseAMallocExp(AMallocExp node)
Returns the default answer for a AMallocExp node. |
String |
caseANullExp(ANullExp node)
Returns the default answer for a ANullExp node. |
String |
caseAOutputStm(AOutputStm node)
Returns the default answer for a AOutputStm node. |
String |
caseAPointerExp(APointerExp node)
Returns the default answer for a APointerExp node. |
String |
caseAReturnStm(AReturnStm node)
Returns the default answer for a AReturnStm node. |
String |
caseAVarExp(AVarExp node)
Returns the default answer for a AVarExp node. |
String |
caseAWhileStm(AWhileStm node)
Returns the default answer for a AWhileStm node. |
String |
caseAAssignPtrStm(AAssignPtrStm node)
Returns the default answer for a AAssignPtrStm node. |
String |
caseAAssignVarStm(AAssignVarStm node)
Returns the default answer for a AAssignVarStm node. |
String |
defaultNode(Node node)
Returns the default answer for a Node . |
String |
defaultPBinop(PBinop binop)
Returns the default answer for a PBinop node. |
String |
toString(T node)
Returns a textual representation of t . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeText()
Method Detail |
---|
public String toString(T node)
Stringifier
t
.
toString
in interface Stringifier<T extends Node>
node
- the object for which a textual representation is returned
t
public String defaultNode(Node node)
AnswerAdapter
Node
.
defaultNode
in class AnswerAdapter<String>
node
- the calling Node
Node
public String caseABinopExp(ABinopExp node)
AnswerAdapter
ABinopExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseABinopExp
in interface Answer<String>
caseABinopExp
in class AnswerAdapter<String>
node
- the calling ABinopExp
node
ABinopExp
nodepublic String caseAIfThenElseStm(AIfThenElseStm node)
AnswerAdapter
AIfThenElseStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseAIfThenElseStm
in interface Answer<String>
caseAIfThenElseStm
in class AnswerAdapter<String>
node
- the calling AIfThenElseStm
node
AIfThenElseStm
nodepublic String caseAIfThenStm(AIfThenStm node)
AnswerAdapter
AIfThenStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseAIfThenStm
in interface Answer<String>
caseAIfThenStm
in class AnswerAdapter<String>
node
- the calling AIfThenStm
node
AIfThenStm
nodepublic String caseAWhileStm(AWhileStm node)
AnswerAdapter
AWhileStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseAWhileStm
in interface Answer<String>
caseAWhileStm
in class AnswerAdapter<String>
node
- the calling AWhileStm
node
AWhileStm
nodepublic String caseAAssignVarStm(AAssignVarStm node)
AnswerAdapter
AAssignVarStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseAAssignVarStm
in interface Answer<String>
caseAAssignVarStm
in class AnswerAdapter<String>
node
- the calling AAssignVarStm
node
AAssignVarStm
nodepublic String caseAAssignPtrStm(AAssignPtrStm node)
AnswerAdapter
AAssignPtrStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseAAssignPtrStm
in interface Answer<String>
caseAAssignPtrStm
in class AnswerAdapter<String>
node
- the calling AAssignPtrStm
node
AAssignPtrStm
nodepublic String caseAMallocExp(AMallocExp node)
AnswerAdapter
AMallocExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseAMallocExp
in interface Answer<String>
caseAMallocExp
in class AnswerAdapter<String>
node
- the calling AMallocExp
node
AMallocExp
nodepublic String caseAInputExp(AInputExp node)
AnswerAdapter
AInputExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseAInputExp
in interface Answer<String>
caseAInputExp
in class AnswerAdapter<String>
node
- the calling AInputExp
node
AInputExp
nodepublic String caseANullExp(ANullExp node)
AnswerAdapter
ANullExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseANullExp
in interface Answer<String>
caseANullExp
in class AnswerAdapter<String>
node
- the calling ANullExp
node
ANullExp
nodepublic String caseAPointerExp(APointerExp node)
AnswerAdapter
APointerExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseAPointerExp
in interface Answer<String>
caseAPointerExp
in class AnswerAdapter<String>
node
- the calling APointerExp
node
APointerExp
nodepublic String caseADerefExp(ADerefExp node)
AnswerAdapter
ADerefExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseADerefExp
in interface Answer<String>
caseADerefExp
in class AnswerAdapter<String>
node
- the calling ADerefExp
node
ADerefExp
nodepublic String caseAFunctionCallExp(AFunctionCallExp node)
AnswerAdapter
AFunctionCallExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseAFunctionCallExp
in interface Answer<String>
caseAFunctionCallExp
in class AnswerAdapter<String>
node
- the calling AFunctionCallExp
node
AFunctionCallExp
nodepublic String caseAFunctionPtrCallExp(AFunctionPtrCallExp node)
AnswerAdapter
AFunctionPtrCallExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseAFunctionPtrCallExp
in interface Answer<String>
caseAFunctionPtrCallExp
in class AnswerAdapter<String>
node
- the calling AFunctionPtrCallExp
node
AFunctionPtrCallExp
nodepublic String caseAReturnStm(AReturnStm node)
AnswerAdapter
AReturnStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseAReturnStm
in interface Answer<String>
caseAReturnStm
in class AnswerAdapter<String>
node
- the calling AReturnStm
node
AReturnStm
nodepublic String caseAOutputStm(AOutputStm node)
AnswerAdapter
AOutputStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseAOutputStm
in interface Answer<String>
caseAOutputStm
in class AnswerAdapter<String>
node
- the calling AOutputStm
node
AOutputStm
nodepublic String caseADeclStm(ADeclStm node)
AnswerAdapter
ADeclStm
node. The call is deferred
to AnswerAdapter.defaultPStm(PStm)
.
caseADeclStm
in interface Answer<String>
caseADeclStm
in class AnswerAdapter<String>
node
- the calling ADeclStm
node
ADeclStm
nodepublic String caseAVarExp(AVarExp node)
AnswerAdapter
AVarExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseAVarExp
in interface Answer<String>
caseAVarExp
in class AnswerAdapter<String>
node
- the calling AVarExp
node
AVarExp
nodepublic String caseAIntConstExp(AIntConstExp node)
AnswerAdapter
AIntConstExp
node. The call is deferred
to AnswerAdapter.defaultPExp(PExp)
.
caseAIntConstExp
in interface Answer<String>
caseAIntConstExp
in class AnswerAdapter<String>
node
- the calling AIntConstExp
node
AIntConstExp
nodepublic String caseALocalDecl(ALocalDecl node)
AnswerAdapter
ALocalDecl
node. The call is deferred
to AnswerAdapter.defaultPDecl(PDecl)
.
caseALocalDecl
in interface Answer<String>
caseALocalDecl
in class AnswerAdapter<String>
node
- the calling ALocalDecl
node
ALocalDecl
nodepublic String defaultPBinop(PBinop binop)
AnswerAdapter
PBinop
node. The call is deferred
to AnswerAdapter.defaultNode(Node)
.
defaultPBinop
in class AnswerAdapter<String>
binop
- the calling PBinop
node
PBinop
node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |