public class ASFileScopeRequestResult extends FileScopeRequestResultBase
definitions
Constructor and Description |
---|
ASFileScopeRequestResult(Collection<IDefinition> definitionPromises,
IDefinitionPriority definitionPriority,
Collection<ICompilerProblem> problems,
ASFileScope fileScope,
IFileSpecification fileSpec)
ASCompilationUnit only allow one public visible definition. |
Modifier and Type | Method and Description |
---|---|
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. |
IDefinition |
getMainDefinition(String qname)
The only public definition in the file scope should match the given
QName.
|
addProblems, getExternallyVisibleDefinitions, getFileScopes, getProblems, getScopes
public ASFileScopeRequestResult(Collection<IDefinition> definitionPromises, IDefinitionPriority definitionPriority, Collection<ICompilerProblem> problems, ASFileScope fileScope, IFileSpecification fileSpec)
ASCompilationUnit
only allow one public visible definition.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
checkExternallyVisibleDefinitions
in class FileScopeRequestResultBase
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
spublic IDefinition getMainDefinition(String qname)
getMainDefinition
in interface IFileScopeRequestResult
getMainDefinition
in class FileScopeRequestResultBase
Copyright © 2016 The Apache Software Foundation. All rights reserved.