public class DefaultImportsConfiguration extends java.lang.Object implements IImportsConfiguration
| Constructor and Description | 
|---|
DefaultImportsConfiguration()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addInnerTypes(JvmDeclaredType containerType,
             IAcceptor<? super JvmDeclaredType> result)  | 
protected java.util.List<org.eclipse.emf.ecore.EObject> | 
findPathToImportSection()  | 
protected INode | 
findPreviousNode(ICompositeNode node,
                java.util.List<org.eclipse.emf.ecore.EObject> pathToImportSection)  | 
JvmDeclaredType | 
getContextJvmDeclaredType(org.eclipse.emf.ecore.EObject model)  | 
java.util.Set<java.lang.String> | 
getImplicitlyImportedPackages(XtextResource resource)  | 
XImportSection | 
getImportSection(XtextResource resource)  | 
int | 
getImportSectionOffset(XtextResource resource)  | 
java.lang.String | 
getLegacyImportSyntax(XImportDeclaration importDeclaration)
Returns the syntax that was used in the import declaration if (and only if) it uses
 the legacy notation with a '$' as the delimiter for nested types. 
 | 
java.lang.Iterable<JvmDeclaredType> | 
getLocallyDefinedTypes(XtextResource resource)  | 
java.lang.String | 
getPackageName(XtextResource xtextResource)  | 
protected boolean | 
internalFindPathToImportSection(java.util.LinkedList<org.eclipse.emf.ecore.EObject> pathToImportSection,
                               java.util.Set<ParserRule> seenRules,
                               org.eclipse.emf.ecore.EObject ruleOrRuleCall)  | 
public XImportSection getImportSection(XtextResource resource)
getImportSection in interface IImportsConfigurationpublic java.lang.Iterable<JvmDeclaredType> getLocallyDefinedTypes(XtextResource resource)
getLocallyDefinedTypes in interface IImportsConfigurationpublic JvmDeclaredType getContextJvmDeclaredType(org.eclipse.emf.ecore.EObject model)
getContextJvmDeclaredType in interface IImportsConfigurationprotected void addInnerTypes(JvmDeclaredType containerType, IAcceptor<? super JvmDeclaredType> result)
public java.util.Set<java.lang.String> getImplicitlyImportedPackages(XtextResource resource)
getImplicitlyImportedPackages in interface IImportsConfigurationpublic int getImportSectionOffset(XtextResource resource)
getImportSectionOffset in interface IImportsConfigurationpublic java.lang.String getLegacyImportSyntax(XImportDeclaration importDeclaration)
IImportsConfigurationgetLegacyImportSyntax in interface IImportsConfigurationprotected INode findPreviousNode(ICompositeNode node, java.util.List<org.eclipse.emf.ecore.EObject> pathToImportSection)
protected java.util.List<org.eclipse.emf.ecore.EObject> findPathToImportSection()
protected boolean internalFindPathToImportSection(java.util.LinkedList<org.eclipse.emf.ecore.EObject> pathToImportSection,
                                      java.util.Set<ParserRule> seenRules,
                                      org.eclipse.emf.ecore.EObject ruleOrRuleCall)
public java.lang.String getPackageName(XtextResource xtextResource)
getPackageName in interface IImportsConfiguration