|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
com.adamcornett.cminus.tree.CMTree
com.adamcornett.cminus.tree.ExprNode
com.adamcornett.cminus.tree.CallTree
public class CallTree
Node for method calls
| Field Summary |
|---|
| Fields inherited from class com.adamcornett.cminus.tree.CMTree |
|---|
log |
| Fields inherited from class org.antlr.runtime.tree.CommonTree |
|---|
childIndex, parent, startIndex, stopIndex, token |
| Fields inherited from class org.antlr.runtime.tree.BaseTree |
|---|
children |
| Fields inherited from interface org.antlr.runtime.tree.Tree |
|---|
INVALID_NODE |
| Constructor Summary | |
|---|---|
CallTree(org.antlr.runtime.Token payload)
|
|
| Method Summary | |
|---|---|
void |
emitCode(ClassGenerator classGenerator)
|
Function |
getFunction()
|
int |
getRequiredStack()
|
Type |
getReturnType()
|
Scope |
getScope()
|
int |
getScopeNumber()
|
void |
setFunction(Function f)
|
void |
setReturnType(Type t)
|
void |
setScope(Scope s)
|
| Methods inherited from class com.adamcornett.cminus.tree.ExprNode |
|---|
getOperandType |
| Methods inherited from class com.adamcornett.cminus.tree.CMTree |
|---|
emitLineInfo, getMaxTreeDepth, getNextLabelNumber |
| Methods inherited from class org.antlr.runtime.tree.CommonTree |
|---|
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString |
| Methods inherited from class org.antlr.runtime.tree.BaseTree |
|---|
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CallTree(org.antlr.runtime.Token payload)
| Method Detail |
|---|
public void emitCode(ClassGenerator classGenerator)
emitCode in class CMTreepublic Function getFunction()
getFunction in interface FunctionNodepublic int getRequiredStack()
getRequiredStack in class CMTreepublic Type getReturnType()
getReturnType in interface TypeNodepublic Scope getScope()
getScope in interface ScopeNodepublic int getScopeNumber()
getScopeNumber in interface ScopeNodepublic void setFunction(Function f)
setFunction in interface FunctionNodepublic void setReturnType(Type t)
setReturnType in interface TypeNodepublic void setScope(Scope s)
setScope in interface ScopeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||