当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
SyntaxDebug (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor
Class SyntaxDebug
java.lang.Object
org.netbeans.editor.SyntaxDebug
public class SyntaxDebug
- extends Object
Debugging stuff for the syntax scanners
Method Summary |
int |
debugScan()
Debug scanning on the given string. |
int |
parseFile(String fileName)
Scans the whole file by some syntax scanner. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_STATE_ASSIGNED
public static final String NO_STATE_ASSIGNED
- See Also:
- Constant Field Values
NULL_STATE
public static final String NULL_STATE
- See Also:
- Constant Field Values
NULL_SYNTAX_MARK
public static final String NULL_SYNTAX_MARK
- See Also:
- Constant Field Values
syntax
public Syntax syntax
SyntaxDebug
public SyntaxDebug(Syntax syntax)
parseFile
public int parseFile(String fileName)
throws IOException
- Scans the whole file by some syntax scanner.
- Returns:
- number of tokens found
- Throws:
IOException
debugScan
public int debugScan()
- Debug scanning on the given string. Write output to console.
It returns number of tokens found (excluding EOL and EOT).