public class FunctionSymbol extends SymbolWithScope implements TypedSymbol
| Modifier and Type | Field and Description |
|---|---|
protected org.antlr.v4.runtime.ParserRuleContext |
defNode |
protected Type |
retType |
index, nameenclosingScope, nestedScopesNotSymbols, symbols| Constructor and Description |
|---|
FunctionSymbol(String name) |
| Modifier and Type | Method and Description |
|---|---|
org.antlr.v4.runtime.ParserRuleContext |
getDefNode() |
int |
getNumberOfParameters() |
int |
getNumberOfVariables()
Return the number of VariableSymbols specifically defined in the scope.
|
Type |
getType() |
void |
setDefNode(org.antlr.v4.runtime.ParserRuleContext defNode) |
void |
setType(Type type) |
String |
toString() |
equals, getEnclosingScope, getFullyQualifiedName, getInsertionOrderNumber, getName, getNumberOfSymbols, getParentScope, getQualifiedName, getQualifiedName, getScope, hashCode, setInsertionOrderNumber, setScopedefine, getAllNestedScopedSymbols, getAllSymbols, getEnclosingPathToRoot, getEnclosingScopeOfType, getMembers, getNestedScopedSymbols, getNestedScopes, getOuterMostEnclosingScope, getParentScopes, getSymbol, getSymbolNames, getSymbols, nest, resolve, setEnclosingScope, toQualifierString, toScopeStackString, toTestString, toTestStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdefine, getAllSymbols, getEnclosingPathToRoot, getNestedScopedSymbols, getNestedScopes, getParentScopes, getSymbol, getSymbolNames, getSymbols, nest, resolve, setEnclosingScope, toQualifierStringprotected org.antlr.v4.runtime.ParserRuleContext defNode
protected Type retType
public FunctionSymbol(String name)
public void setDefNode(org.antlr.v4.runtime.ParserRuleContext defNode)
public org.antlr.v4.runtime.ParserRuleContext getDefNode()
public Type getType()
getType in interface TypedSymbolpublic void setType(Type type)
setType in interface TypedSymbolpublic int getNumberOfVariables()
public int getNumberOfParameters()
Copyright © 2016 ANTLR. All Rights Reserved.