use of nl.ramsolutions.sw.magik.analysis.definitions.GlobalDefinition in project magik-tools by StevenLooman.
the class MagikIndexer method handleDefinition.
private void handleDefinition(final Path path, final MagikFile magikFile, final Definition definition) {
if (definition instanceof PackageDefinition) {
final PackageDefinition packageDefinition = (PackageDefinition) definition;
this.handleDefinition(magikFile, packageDefinition);
} else if (definition instanceof IndexedExemplarDefinition) {
final IndexedExemplarDefinition indexedExemplarDefinition = (IndexedExemplarDefinition) definition;
this.handleDefinition(magikFile, indexedExemplarDefinition);
} else if (definition instanceof EnumerationDefinition) {
final EnumerationDefinition enumerationDefinition = (EnumerationDefinition) definition;
this.handleDefinition(magikFile, enumerationDefinition);
} else if (definition instanceof SlottedExemplarDefinition) {
final SlottedExemplarDefinition slottedExemplarDefinition = (SlottedExemplarDefinition) definition;
this.handleDefinition(magikFile, slottedExemplarDefinition);
} else if (definition instanceof MixinDefinition) {
final MixinDefinition mixinDefinition = (MixinDefinition) definition;
this.handleDefinition(magikFile, mixinDefinition);
} else if (definition instanceof MethodDefinition) {
final MethodDefinition methodDefinition = (MethodDefinition) definition;
this.handleDefinition(magikFile, methodDefinition);
} else if (definition instanceof GlobalDefinition) {
final GlobalDefinition globalDefinition = (GlobalDefinition) definition;
this.handleDefinition(magikFile, globalDefinition);
} else if (definition instanceof BinaryOperatorDefinition) {
final BinaryOperatorDefinition binaryOperatorDefinition = (BinaryOperatorDefinition) definition;
this.handleDefinition(magikFile, binaryOperatorDefinition);
}
}
Aggregations