Class LoadProperties

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Script parent  
      private java.lang.String path  
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadProperties​(java.lang.String path, Script parent)
      Creates a new properties object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object accept​(IVisitor visitor)
      Accepts the visitor for visiting.
      Script getParent()
      Returns the parent element.
      java.lang.String getPath()
      Returns the original path as String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • path

        private java.lang.String path
      • parent

        private Script parent
    • Constructor Detail

      • LoadProperties

        public LoadProperties​(java.lang.String path,
                              Script parent)
        Creates a new properties object.
        Parameters:
        path - the path from where to load the properties
        parent - the parent script
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Returns the original path as String.
        Returns:
        the original path
      • accept

        public java.lang.Object accept​(IVisitor visitor)
                                throws VilException
        Description copied from interface: IBuildlangElement
        Accepts the visitor for visiting.
        Specified by:
        accept in interface IBuildlangElement
        Parameters:
        visitor - the visitor to be used
        Returns:
        the result of visiting this instance (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)