java.lang.Object
de.grogra.suggest.scope.BaseScope
de.grogra.suggest.scope.SymbolWithScope
de.grogra.suggest.scope.FunctionSymbol
de.grogra.suggest.scope.MethodSymbol
- All Implemented Interfaces:
MemberSymbol
,Scope
,Symbol
,SymbolWithModifiers
,TypedSymbol
- Direct Known Subclasses:
ConstructorSymbol
,MethodSymbolImport
A method symbol is a function that lives within an aggregate/class and has a slot number.
-
Field Summary
Fields inherited from class de.grogra.suggest.scope.FunctionSymbol
defNode, isArray, retType, typeAsText, typeResolved
Fields inherited from class de.grogra.suggest.scope.SymbolWithScope
index, name
Fields inherited from class de.grogra.suggest.scope.BaseScope
enclosingScope, nestedScopesNotSymbols, symbols
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addModifier
(int m) int
int
boolean
boolean
check if the given methodsymbol has the same set of parameters/ name/ and return value.Methods inherited from class de.grogra.suggest.scope.FunctionSymbol
getDefNode, getNumberOfParameters, getNumberOfVariables, getType, isArray, resolveType, setDefNode, setType, setTypeResolved, toString
Methods inherited from class de.grogra.suggest.scope.SymbolWithScope
equals, getEnclosingScope, getFullyQualifiedName, getInsertionOrderNumber, getName, getNumberOfSymbols, getQualifiedName, getQualifiedName, getScope, hashCode, setInsertionOrderNumber, setScope
Methods inherited from class de.grogra.suggest.scope.BaseScope
define, getAllNestedScopedSymbols, getAllSymbols, getEnclosingPathToRoot, getEnclosingScopeOfType, getMembers, getNestedScopedSymbols, getNestedScopes, getOuterMostEnclosingScope, getSymbol, getSymbolNames, getSymbols, nest, resolve, resolveFirst, setEnclosingScope, toQualifierString, toScopeStackString, toTestString, toTestString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.suggest.scope.Scope
define, getAllSymbols, getEnclosingPathToRoot, getNestedScopedSymbols, getNestedScopes, getSymbol, getSymbolNames, getSymbols, nest, resolve, resolveFirst, setEnclosingScope, toQualifierString
Methods inherited from interface de.grogra.suggest.scope.Symbol
equals, getInsertionOrderNumber, getName, getScope, hashCode, setInsertionOrderNumber, setScope
-
Field Details
-
slot
protected int slot -
modifier
protected int modifier
-
-
Constructor Details
-
MethodSymbol
-
-
Method Details
-
getSlotNumber
public int getSlotNumber()- Specified by:
getSlotNumber
in interfaceMemberSymbol
-
getParameters
-
addModifier
public void addModifier(int m) - Specified by:
addModifier
in interfaceSymbolWithModifiers
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in interfaceSymbolWithModifiers
-
match
check if the given methodsymbol has the same set of parameters/ name/ and return value. List are not ordered so there is not reason the getparam provide the same order. Which will still provide true.... TODO: check the order of the parameters as well -
match
-