Class JavaScriptDeclaration

    • Field Detail

      • name

        private java.lang.String name
      • offset

        private int offset
      • start

        private int start
      • end

        private int end
    • Constructor Detail

      • JavaScriptDeclaration

        public JavaScriptDeclaration​(java.lang.String name,
                                     int offset,
                                     CodeBlock block)
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        Name of the declaration
      • getOffset

        public int getOffset()
        Returns:
        variable position within the script
      • getEndOffset

        public int getEndOffset()
        Gets the end offset of this declaration.
        Returns:
        The end offset.
      • setEndOffset

        public void setEndOffset​(int end)
        Sets the end offset of this declaration.
        Parameters:
        end - the end offset.
        See Also:
        getEndOffset()
      • setStartOffset

        public void setStartOffset​(int start)
        Sets the start offset of this declaration.
        Parameters:
        start - the start offset
        See Also:
        getStartOffSet()
      • getStartOffSet

        public int getStartOffSet()
        Gets the start offset of this declaration.
        Returns:
        The start offset.
      • getCodeBlock

        public CodeBlock getCodeBlock()
        Returns:
        codeblock associated with this declaration
      • setTypeDeclarationOptions

        public void setTypeDeclarationOptions​(TypeDeclarationOptions options)
        Set the JavaScript options associated with this declaration These are used to defined whether options are available to
        Parameters:
        options -
      • getTypeDeclarationOptions

        public TypeDeclarationOptions getTypeDeclarationOptions()
        Returns:
        the JavaScript options associated with this declaration