sidekick.javascript
Class JavaScriptParser

java.lang.Object
  extended by sidekick.SideKickParser
      extended by sidekick.enhanced.SourceParser
          extended by sidekick.javascript.JavaScriptParser
All Implemented Interfaces:
sidekick.enhanced.PartialParser

public class JavaScriptParser
extends sidekick.enhanced.SourceParser

JavaScriptParser: parses perl source and builds a sidekick structure tree Parser is based on regular expressions and will therefore not able to correctly parse very irregular perl scripts

Version:
$Revision: 18336 $
Author:
Martin Raspe

Nested Class Summary
 
Nested classes/interfaces inherited from class sidekick.enhanced.SourceParser
sidekick.enhanced.SourceParser.AssetComparator, sidekick.enhanced.SourceParser.PackageComparator, sidekick.enhanced.SourceParser.PackageMap
 
Field Summary
 
Fields inherited from class sidekick.enhanced.SourceParser
_asset, _end, _lastLineNumber, _pkgAsset, _start, COMMENT, COMMENT_ICON, commentList, data, LINE_COMMENT, MAIN, PACKAGE_ICON, PACKAGE_INVALID_ICON, packages, PKG_KEY, startLine, SUB_ICON, SUB_INVALID_ICON, SUB_KEY, USE, USE_ICON, USE_INVALID_ICON, USE_KEY
 
Fields inherited from class sidekick.SideKickParser
name, SERVICE
 
Constructor Summary
JavaScriptParser()
          Constructs a new Parser object
 
Method Summary
 sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer, java.lang.String text, errorlist.DefaultErrorSource errorSource)
           
protected  void parseBuffer(org.gjt.sp.jedit.Buffer buffer, errorlist.DefaultErrorSource errorSource)
          Parses the given text and returns a tree model.
protected  void parseBuffer(org.gjt.sp.jedit.Buffer buffer, java.lang.String text, errorlist.DefaultErrorSource errorSource)
           
 
Methods inherited from class sidekick.enhanced.SourceParser
addAsset, addCommentAsset, addLineAsset, addList, addPackageAsset, buildTrees, completeAsset, completeAsset, completeAsset, completePackageAsset, find, find2, loadIcon, loadIcons, newTree, parse, setStartLine
 
Methods inherited from class sidekick.SideKickParser
activate, activate, canCompleteAnywhere, canHandleBackspace, complete, deactivate, deactivate, getCompletionPopup, getInstantCompletionTriggers, getName, getPanel, getParseTriggers, stop, supportsCompletion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptParser

public JavaScriptParser()
Constructs a new Parser object

Method Detail

parseBuffer

protected void parseBuffer(org.gjt.sp.jedit.Buffer buffer,
                           errorlist.DefaultErrorSource errorSource)
Parses the given text and returns a tree model.

Overrides:
parseBuffer in class sidekick.enhanced.SourceParser
Parameters:
buffer - The buffer to parse.
errorSource - An error source to add errors to.

parse

public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer,
                                         java.lang.String text,
                                         errorlist.DefaultErrorSource errorSource)
Specified by:
parse in interface sidekick.enhanced.PartialParser
Overrides:
parse in class sidekick.enhanced.SourceParser

parseBuffer

protected void parseBuffer(org.gjt.sp.jedit.Buffer buffer,
                           java.lang.String text,
                           errorlist.DefaultErrorSource errorSource)