public class FileScopeRequestResultBase extends Object implements IFileScopeRequestResult
IFileScopeRequestResult
.Modifier and Type | Field and Description |
---|---|
protected Collection<IDefinition> |
definitions
All the public definitions in the given file scope.
|
Constructor and Description |
---|
FileScopeRequestResultBase(Collection<ICompilerProblem> problems,
Collection<? extends IASScope> scopes)
Create an immutable
IFileScopeRequestResult object. |
Modifier and Type | Method and Description |
---|---|
protected void |
addProblems(Collection<ICompilerProblem> newProblems)
This method allows sub-classes to add problems to the problems collection
after running this classes constructor.
|
Collection<ICompilerProblem> |
checkExternallyVisibleDefinitions(String dottedQName)
Create compiler problems if the a definition with the specified dotted
qualified name is not defined in the
IASScope s in this result
object or if there is an externally visible definition other than the
named definition. |
Collection<IDefinition> |
getExternallyVisibleDefinitions()
Get all the public definitions.
|
ASFileScope[] |
getFileScopes() |
IDefinition |
getMainDefinition(String qname) |
ICompilerProblem[] |
getProblems() |
IASScope[] |
getScopes() |
protected final Collection<IDefinition> definitions
public FileScopeRequestResultBase(Collection<ICompilerProblem> problems, Collection<? extends IASScope> scopes)
IFileScopeRequestResult
object.problems
- All the compiler problems will be stored in this
collection.scopes
- Top-level scopes in this request result. The public
definitions in the scopes will be collected and stored in field
definitions
.public ICompilerProblem[] getProblems()
getProblems
in interface IRequestResult
public IASScope[] getScopes()
getScopes
in interface IFileScopeRequestResult
public ASFileScope[] getFileScopes()
public IDefinition getMainDefinition(String qname)
getMainDefinition
in interface IFileScopeRequestResult
public Collection<IDefinition> getExternallyVisibleDefinitions()
getExternallyVisibleDefinitions
in interface IFileScopeRequestResult
protected void addProblems(Collection<ICompilerProblem> newProblems)
newProblems
- Collection of ICompilerProblem
's to add
to the problems list for this result object.public Collection<ICompilerProblem> checkExternallyVisibleDefinitions(String dottedQName)
IFileScopeRequestResult
IASScope
s in this result
object or if there is an externally visible definition other than the
named definition.checkExternallyVisibleDefinitions
in interface IFileScopeRequestResult
dottedQName
- The dotted fully qualified definition name of the definition that should
be the only definition in the IASScope
s in this result object.Collection
of ICompilerProblem
sCopyright © 2016 The Apache Software Foundation. All rights reserved.