java.lang.Object
de.grogra.suggest.scope.BaseScope
de.grogra.suggest.scope.SymbolWithScope
de.grogra.suggest.scope.DataAggregateSymbol
de.grogra.suggest.scope.ClassSymbol
de.grogra.suggest.scope.ClassSymbolImport
- All Implemented Interfaces:
MemberSymbol
,Scope
,Symbol
,Type
A class/type that has been imported through imports (import xx.xx.MyClass)
-
Field Summary
Fields inherited from class de.grogra.suggest.scope.ClassSymbol
interfacesName, nextFreeMethodSlot, superClassName
Fields inherited from class de.grogra.suggest.scope.DataAggregateSymbol
defNode, nextFreeFieldSlot, typeIndex
Fields inherited from class de.grogra.suggest.scope.SymbolWithScope
index, name
Fields inherited from class de.grogra.suggest.scope.BaseScope
enclosingScope, nestedScopesNotSymbols, symbols
Fields inherited from interface de.grogra.suggest.scope.Type
EMPTY, INCOMPLETE_TYPE, NEW
-
Constructor Summary
ConstructorsConstructorDescriptionClassSymbolImport
(Class<?> cls) ClassSymbolImport
(String name, ClassLoader cl) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterface
(String interfaceName) Return all symbols found in all nested scopes.Class<?>
getClazz()
Return the set of all methods defined within this classList<? extends FieldSymbol>
Return the ClassSymbols associated with the interfaces names or nullReturn the set of all methods either inherited or notint
get the number of methods defined specifically in this classint
Get the total number of fields visible to this classint
get the total number of methods visible to this classReturn the ClassSymbol associated with superClassName or null if superclass is not resolved looking up the enclosing scope chain.Multiple superclass or interface implementations and the like...Return the symbols defined within this scope.resolveField
(String name) Look for a field with this name in this scope or any super class.resolveMember
(String name) Look for a member with this name in this scope or any super class.resolveMethod
(String name) Look for a method with this name in this scope or any super class.void
setPackageName
(String pkgName) void
setSlotNumber
(Symbol sym) void
setSuperClass
(String superClassName) Methods inherited from class de.grogra.suggest.scope.ClassSymbol
getDefinedConstructors, isEqual, toString
Methods inherited from class de.grogra.suggest.scope.DataAggregateSymbol
define, getDefinedFields, getDefNode, getMembers, getNumberOfDefinedFields, getSlotNumber, getTypeIndex, setDefNode, setTypeIndex
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
getAllNestedScopedSymbols, getEnclosingPathToRoot, getEnclosingScopeOfType, getNestedScopedSymbols, getNestedScopes, getOuterMostEnclosingScope, getSymbol, getSymbolNames, 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
getEnclosingPathToRoot, getNestedScopedSymbols, getNestedScopes, getSymbol, getSymbolNames, nest, resolve, resolveFirst, setEnclosingScope, toQualifierString
Methods inherited from interface de.grogra.suggest.scope.Symbol
equals, getInsertionOrderNumber, getName, getScope, hashCode, setInsertionOrderNumber, setScope
-
Constructor Details
-
ClassSymbolImport
-
ClassSymbolImport
-
-
Method Details
-
getClazz
-
setPackageName
-
getSuperClassScope
Description copied from class:ClassSymbol
Return the ClassSymbol associated with superClassName or null if superclass is not resolved looking up the enclosing scope chain.- Overrides:
getSuperClassScope
in classClassSymbol
-
getInterfacesScope
Description copied from class:ClassSymbol
Return the ClassSymbols associated with the interfaces names or null- Overrides:
getInterfacesScope
in classClassSymbol
-
getSuperClassScopes
Description copied from class:ClassSymbol
Multiple superclass or interface implementations and the like...- Overrides:
getSuperClassScopes
in classClassSymbol
-
resolveMember
Description copied from class:ClassSymbol
Look for a member with this name in this scope or any super class. Return null if no member found.- Overrides:
resolveMember
in classClassSymbol
-
resolveField
Description copied from class:ClassSymbol
Look for a field with this name in this scope or any super class. Return null if no field found.- Overrides:
resolveField
in classClassSymbol
-
resolveMethod
Description copied from class:ClassSymbol
Look for a method with this name in this scope or any super class. Return null if no method found.- Overrides:
resolveMethod
in classClassSymbol
-
setSuperClass
- Overrides:
setSuperClass
in classClassSymbol
-
getSuperClassName
- Overrides:
getSuperClassName
in classClassSymbol
-
addInterface
- Overrides:
addInterface
in classClassSymbol
-
getInterfacesName
- Overrides:
getInterfacesName
in classClassSymbol
-
setSlotNumber
- Overrides:
setSlotNumber
in classClassSymbol
-
getDefinedMethods
Description copied from class:ClassSymbol
Return the set of all methods defined within this class- Overrides:
getDefinedMethods
in classClassSymbol
-
getMethods
Description copied from class:ClassSymbol
Return the set of all methods either inherited or not- Overrides:
getMethods
in classClassSymbol
-
getFields
- Overrides:
getFields
in classClassSymbol
-
getNumberOfDefinedMethods
public int getNumberOfDefinedMethods()Description copied from class:ClassSymbol
get the number of methods defined specifically in this class- Overrides:
getNumberOfDefinedMethods
in classClassSymbol
-
getNumberOfMethods
public int getNumberOfMethods()Description copied from class:ClassSymbol
get the total number of methods visible to this class- Overrides:
getNumberOfMethods
in classClassSymbol
-
getNumberOfFields
public int getNumberOfFields()Description copied from class:DataAggregateSymbol
Get the total number of fields visible to this class- Overrides:
getNumberOfFields
in classClassSymbol
-
getSymbols
Description copied from interface:Scope
Return the symbols defined within this scope. The order of insertion into the scope is the order returned in this list.- Specified by:
getSymbols
in interfaceScope
- Overrides:
getSymbols
in classDataAggregateSymbol
-
getAllSymbols
Description copied from interface:Scope
Return all symbols found in all nested scopes. The order of insertion into the scope is the order returned in this list for each scope. The scopes are traversed in the order in which they are encountered in the input.- Specified by:
getAllSymbols
in interfaceScope
- Overrides:
getAllSymbols
in classBaseScope
-