Search in sources :

Example 1 with PerlImportsCollector

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();
}
Also used : PerlImportsCollector(com.perl5.lang.perl.util.processors.PerlImportsCollector) PerlScalarImportsCollector(com.perl5.lang.perl.util.processors.PerlScalarImportsCollector) NotNull(org.jetbrains.annotations.NotNull)

Example 2 with PerlImportsCollector

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();
}
Also used : PerlSubImportsCollector(com.perl5.lang.perl.util.processors.PerlSubImportsCollector) PerlImportsCollector(com.perl5.lang.perl.util.processors.PerlImportsCollector) NotNull(org.jetbrains.annotations.NotNull)

Example 3 with PerlImportsCollector

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();
}
Also used : PerlArrayImportsCollector(com.perl5.lang.perl.util.processors.PerlArrayImportsCollector) PerlImportsCollector(com.perl5.lang.perl.util.processors.PerlImportsCollector) NotNull(org.jetbrains.annotations.NotNull)

Example 4 with PerlImportsCollector

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();
}
Also used : PerlHashImportsCollector(com.perl5.lang.perl.util.processors.PerlHashImportsCollector) PerlImportsCollector(com.perl5.lang.perl.util.processors.PerlImportsCollector) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

PerlImportsCollector (com.perl5.lang.perl.util.processors.PerlImportsCollector)4 NotNull (org.jetbrains.annotations.NotNull)4 PerlArrayImportsCollector (com.perl5.lang.perl.util.processors.PerlArrayImportsCollector)1 PerlHashImportsCollector (com.perl5.lang.perl.util.processors.PerlHashImportsCollector)1 PerlScalarImportsCollector (com.perl5.lang.perl.util.processors.PerlScalarImportsCollector)1 PerlSubImportsCollector (com.perl5.lang.perl.util.processors.PerlSubImportsCollector)1