Class LanguageVisitor

  • All Implemented Interfaces:
    ILanguageVisitor

    public class LanguageVisitor
    extends Object
    implements ILanguageVisitor
    Visitor that is used during initialization to gather the available languages.
    Since:
    5.1
    Author:
    O. Kerpershoek
    • Constructor Detail

      • LanguageVisitor

        public LanguageVisitor​(IReportingDS reporter,
                               Map<String,​ILanguage> languages,
                               IProject project)
        Constructs a language visitor with the map where the languages should be added to.
        Parameters:
        reporter - the reporter which can be used to report warnings and errors to.
        languages - Map that will store the languages gathered by this visitor.
        project - The project that should be used to acquire value formats from.
    • Method Detail

      • process

        public void process​(ILanguageDS ds)
        Description copied from interface: ILanguageVisitor
        This method may be used to add a language definition.
        Specified by:
        process in interface ILanguageVisitor
        Parameters:
        ds - The default formatter that should be used to display primitive values in this language.