com.aptana.ide.editor.js.parsing.nodes
Class JSFunctionNode

java.lang.Object
  extended by com.aptana.ide.parsing.nodes.ParseNodeBase
      extended by com.aptana.ide.editor.js.parsing.nodes.JSParseNode
          extended by com.aptana.ide.editor.js.parsing.nodes.JSFunctionNode
All Implemented Interfaces:
IRange, IParseNode

public class JSFunctionNode
extends JSParseNode

Author:
Robin Debreuil

Constructor Summary
JSFunctionNode(Lexeme startLexeme)
           
 
Method Summary
 java.lang.String getFunctionName()
          getFunctionName
 java.lang.String[] getParams()
           
 java.lang.String getSignature()
          getSignature
 boolean hasFunctionName()
          Determine if this function has a name
 void setParams(java.lang.String[] params)
           
 
Methods inherited from class com.aptana.ide.editor.js.parsing.nodes.JSParseNode
getIncludesSemicolon, getName, getSource, isEmpty, setIncludesSemicolon
 
Methods inherited from class com.aptana.ide.parsing.nodes.ParseNodeBase
appendChild, containsOffset, createAttribute, getAttribute, getAttributeNode, getAttributes, getChild, getChildCount, getChildIndex, getChildren, getEndingLexeme, getEndingOffset, getLanguage, getLength, getNodeAtOffset, getParent, getRootNode, getSource, getStartingLexeme, getStartingOffset, getText, getType, getTypeIndex, getXML, getXML, hasAttribute, hasAttributes, hasChildren, setAttribute, setEndingLexeme, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSFunctionNode

public JSFunctionNode(Lexeme startLexeme)
Parameters:
startLexeme -
Method Detail

getFunctionName

public java.lang.String getFunctionName()
getFunctionName

Returns:
String

getParams

public java.lang.String[] getParams()
Returns:
Returns the params.

getSignature

public java.lang.String getSignature()
getSignature

Returns:
This functions signature, including it's name, if defined

hasFunctionName

public boolean hasFunctionName()
Determine if this function has a name

Returns:
boolean

setParams

public void setParams(java.lang.String[] params)
Parameters:
params - The params to set.