|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface describing a scope. There is a scope for each {} block in a file (including function bodies, class bodies, and so on). There is also a file-level scope for each file in the project and a project-level scope that holds cross-file definitions. Scopes keep track of which definitions are available where. Scopes also are capable of determining if other scopes are connected through include statements
| Field Summary | |
static IConnectedScope[] |
EMPTY_SCOPE
|
static java.util.Hashtable |
EMPTY_SYMBOL_TABLE
|
| Method Summary | |
void |
findAllDefinitions(ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions)
Find all definitions that match the filter |
void |
findAllDefinitions(ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions,
java.util.Set guard)
Find all definitions that match the filter |
void |
findAllDefinitionsByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions)
Find all definitions that match the name and filter |
void |
findAllDefinitionsByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions,
java.util.Set guard)
Find all definitions that match the name and filter |
IDefinition |
findDefinitionByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache)
Find the first definition that matches the name and filter properties |
IDefinition |
findDefinitionByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.Set guard)
Find the first definition that matches the name and filter properties |
INamespace[] |
getAllNamespaces()
Returns all the INamespaces that are available in scope |
IConnectedScope[] |
getConnectedScopes(java.util.Set guard)
Returns all the scopes that are connected to this scope |
IASScope |
getContainingScope(java.util.Set guard,
boolean ignoreTemporaryScope)
Gets the IASScope that contains this scope |
IScopedNode |
getScopeNode()
|
java.util.Hashtable |
getSymbols()
|
| Field Detail |
public static final IConnectedScope[] EMPTY_SCOPE
public static final java.util.Hashtable EMPTY_SYMBOL_TABLE
| Method Detail |
public IDefinition findDefinitionByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache)
name - symbol name being referencedfilter - search scope, classification, and static/non-staticcache - definition cache in which to look up already-found definitions
public IDefinition findDefinitionByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.Set guard)
name - symbol name being referencedfilter - search scope, classification, and static/non-staticcache - definition cache in which to look up already-found definitions
public void findAllDefinitionsByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions)
name - symbol name being referencedfilter - search scope, classification, and static/non-staticcache - definition cache in which to look up already-found definitionsdefinitions - list to populate with definitions matching the name and filter
public void findAllDefinitionsByName(java.lang.String name,
ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions,
java.util.Set guard)
name - symbol name being referencedfilter - search scope, classification, and static/non-staticcache - definition cache in which to look up already-found definitionsdefinitions - list to populate with definitions matching the name and filter
public void findAllDefinitions(ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions)
filter - search scope, classification, and static/non-staticcache - definition cache in which to look up already-found definitionsdefinitions - list to populate with definitions matching the filter
public void findAllDefinitions(ASDefinitionFilter filter,
ASDefinitionCache cache,
java.util.List definitions,
java.util.Set guard)
filter - search scope, classification, and static/non-staticcache - definition cache in which to look up already-found definitionsdefinitions - list to populate with definitions matching the filterpublic IConnectedScope[] getConnectedScopes(java.util.Set guard)
guard - guard to prevent loops in our scope chain
IConnectedScope or an empty arraypublic INamespace[] getAllNamespaces()
INamespaces that are available in scope
INamespace array or an empty array
public IASScope getContainingScope(java.util.Set guard,
boolean ignoreTemporaryScope)
IASScope that contains this scope
guard - a recursion guard to protect against loops caused by includesignoreTemporaryScope - a temporary scope is one connected to us through an include. True if we want to treat this scope like it doesn't have one
public java.util.Hashtable getSymbols()
public IScopedNode getScopeNode()
IScopedNode corresponding to this scope
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||