Package org.fife.rsta.ac.js.ast
Class JavaScriptDeclaration
- java.lang.Object
-
- org.fife.rsta.ac.js.ast.JavaScriptDeclaration
-
- Direct Known Subclasses:
JavaScriptFunctionDeclaration,JavaScriptVariableDeclaration
public abstract class JavaScriptDeclaration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JavaScriptDeclaration(java.lang.String name, int offset, CodeBlock block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeBlockgetCodeBlock()intgetEndOffset()Gets the end offset of this declaration.java.lang.StringgetName()intgetOffset()intgetStartOffSet()Gets the start offset of this declaration.TypeDeclarationOptionsgetTypeDeclarationOptions()voidsetEndOffset(int end)Sets the end offset of this declaration.voidsetStartOffset(int start)Sets the start offset of this declaration.voidsetTypeDeclarationOptions(TypeDeclarationOptions options)Set the JavaScript options associated with this declaration These are used to defined whether options are available to
-
-
-
Field Detail
-
name
private java.lang.String name
-
offset
private int offset
-
start
private int start
-
end
private int end
-
block
private CodeBlock block
-
options
private TypeDeclarationOptions options
-
-
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
-
-