Class JavaScriptDeclaration

java.lang.Object
org.fife.rsta.ac.js.ast.JavaScriptDeclaration
Direct Known Subclasses:
JavaScriptFunctionDeclaration, JavaScriptVariableDeclaration

public abstract class JavaScriptDeclaration extends Object
  • Field Details

    • name

      private String name
    • offset

      private int offset
    • start

      private int start
    • end

      private int end
    • block

      private CodeBlock block
    • options

      private TypeDeclarationOptions options
  • Constructor Details

    • JavaScriptDeclaration

      public JavaScriptDeclaration(String name, int offset, CodeBlock block)
  • Method Details

    • getName

      public 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:
    • setStartOffset

      public void setStartOffset(int start)
      Sets the start offset of this declaration.
      Parameters:
      start - the start offset
      See Also:
    • 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