use of com.perl5.lang.perl.util.processors.PerlImportsCollector in project Perl5-IDEA by Camelcade.
the class PerlScalarUtil method getImportedScalarsDescritptors.
/**
* Returns a map of imported scalars names
*
* @param namespaceDefinitionElement element to start looking from
* @return result map
*/
@NotNull
public static List<PerlExportDescriptor> getImportedScalarsDescritptors(@NotNull PerlNamespaceDefinitionElement namespaceDefinitionElement) {
PerlImportsCollector collector = new PerlScalarImportsCollector();
PerlUtil.processImportedEntities(namespaceDefinitionElement, collector);
return collector.getResult();
}
use of com.perl5.lang.perl.util.processors.PerlImportsCollector in project Perl5-IDEA by Camelcade.
the class PerlSubUtil method getImportedSubsDescriptors.
/**
* Returns a list of imported descriptors
*
* @param namespaceDefinitionElement element to start looking from
* @return result map
*/
@NotNull
public static List<PerlExportDescriptor> getImportedSubsDescriptors(@NotNull PerlNamespaceDefinitionElement namespaceDefinitionElement) {
PerlImportsCollector collector = new PerlSubImportsCollector();
PerlUtil.processImportedEntities(namespaceDefinitionElement, collector);
return collector.getResult();
}
use of com.perl5.lang.perl.util.processors.PerlImportsCollector in project Perl5-IDEA by Camelcade.
the class PerlArrayUtil method getImportedArraysDescriptors.
/**
* Returns a map of imported arrays names
*
* @param namespaceDefinitionElement element to start looking from
* @return result map
*/
@NotNull
public static List<PerlExportDescriptor> getImportedArraysDescriptors(@NotNull PerlNamespaceDefinitionElement namespaceDefinitionElement) {
PerlImportsCollector collector = new PerlArrayImportsCollector();
PerlUtil.processImportedEntities(namespaceDefinitionElement, collector);
return collector.getResult();
}
use of com.perl5.lang.perl.util.processors.PerlImportsCollector in project Perl5-IDEA by Camelcade.
the class PerlHashUtil method getImportedHashesDescriptors.
/**
* Returns a map of imported hashes names
*
* @param namespaceDefinitionElement element to start looking from
* @return result map
*/
@NotNull
public static List<PerlExportDescriptor> getImportedHashesDescriptors(@NotNull PerlNamespaceDefinitionElement namespaceDefinitionElement) {
PerlImportsCollector collector = new PerlHashImportsCollector();
PerlUtil.processImportedEntities(namespaceDefinitionElement, collector);
return collector.getResult();
}
Aggregations