Class TypeDef

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Script parent  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeDef​(java.lang.String name, TypeDescriptor<?> type, Script parent)
      Creates a typedef.
    • 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.
      • Methods inherited from class java.lang.Object

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

      • parent

        private Script parent
    • Constructor Detail

      • TypeDef

        public TypeDef​(java.lang.String name,
                       TypeDescriptor<?> type,
                       Script parent)
                throws VilException
        Creates a typedef.
        Parameters:
        name - the alias name
        type - the type to be used for name
        parent - the parent script
        Throws:
        VilException - if one of the arguments is invalid
    • Method Detail

      • 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)