Package org.fife.rsta.ac.js.ast
Class JavaScriptDeclaration
java.lang.Object
org.fife.rsta.ac.js.ast.JavaScriptDeclaration
- Direct Known Subclasses:
JavaScriptFunctionDeclaration,JavaScriptVariableDeclaration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the end offset of this declaration.getName()intintGets the start offset of this declaration.voidsetEndOffset(int end) Sets the end offset of this declaration.voidsetStartOffset(int start) Sets the start offset of this declaration.voidSet the JavaScript options associated with this declaration These are used to defined whether options are available to
-
Field Details
-
name
-
offset
private int offset -
start
private int start -
end
private int end -
block
-
options
-
-
Constructor Details
-
JavaScriptDeclaration
-
-
Method Details
-
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
- Returns:
- codeblock associated with this declaration
-
setTypeDeclarationOptions
Set the JavaScript options associated with this declaration These are used to defined whether options are available to- Parameters:
options-
-
getTypeDeclarationOptions
- Returns:
- the JavaScript options associated with this declaration
-