Java Doc for TokenUtils.java in  » IDE-Netbeans » languages » org » netbeans » modules » php » editor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » languages » org.netbeans.modules.php.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.php.editor.TokenUtils

TokenUtils
public class TokenUtils (Code)

author:
   ads

Inner Class :public enum PHPTokenName

Field Summary
public static  StringARRAY_PAIR_MAPPER
    
public static  StringBLOCK_COMMENT
    
public static  StringCASE
    
public static  StringCOLON
    
public static  StringCOMMA
    
public static  StringDOT
    
public static  StringEOD_OPERATOR
    
public static  StringEOD_STRING
    
public static  StringFOR
    
public static  StringLBRACE
    
public static  StringLBRACKET
    
public static  StringLINE_COMMENT
    
public static  StringLPAREN
    
public static  StringRBRACE
    
public static  StringRBRACKET
    
public static  StringRPAREN
    
public static  StringSEMICOLON
    
public static  StringSTRING
    
public static  StringWHITESPACE
    


Method Summary
public static  booleancheckPhp(Document doc, int offset)
    
public static  StringgetDocComentText(Document document, int offset)
     Returns text of the nearest BLOCK_COMMENT token that is located before the specified offset and whose text is started with "/**".
public static  TokengetEmbeddedToken(Document document, int offset)
    
public static  TokenSequencegetEmbeddedTokenSequence(Document doc, int offset)
    
public static  StringgetEnteredEmbeddedTokenText(Document document, int offset, boolean upToOffset)
    
public static  TokengetEnteredToken(TokenSequence seq, int offset)
     Returns an entried token located nearly the caret.
public static  StringgetEnteredTokenText(TokenSequence seq, int offset, boolean upToOffset)
     Returns text of an entried token located nearly the caret.
public static  TokengetPhpToken(BaseDocument document, int offset)
    
public static  ASTNodegetRoot(BaseDocument doc)
    
public static  TokengetToken(TokenSequence seq, int offset)
    
public static  TokengetToken(Document document, int offset)
    
public static  intgetTokenOffset(TokenSequence seq, int offset)
     returns offset of token which starts on or inclides specified offset.
public static  intgetTokenOffset(BaseDocument doc, int offset)
     returns offset of token which starts on or inclides specified offset.
public static  TokenSequencegetTokenSequence(BaseDocument doc)
    
public static  StringgetTokenType(Token token)
    

Field Detail
ARRAY_PAIR_MAPPER
public static String ARRAY_PAIR_MAPPER(Code)



BLOCK_COMMENT
public static String BLOCK_COMMENT(Code)



CASE
public static String CASE(Code)



COLON
public static String COLON(Code)



COMMA
public static String COMMA(Code)



DOT
public static String DOT(Code)



EOD_OPERATOR
public static String EOD_OPERATOR(Code)



EOD_STRING
public static String EOD_STRING(Code)



FOR
public static String FOR(Code)



LBRACE
public static String LBRACE(Code)



LBRACKET
public static String LBRACKET(Code)



LINE_COMMENT
public static String LINE_COMMENT(Code)



LPAREN
public static String LPAREN(Code)



RBRACE
public static String RBRACE(Code)



RBRACKET
public static String RBRACKET(Code)



RPAREN
public static String RPAREN(Code)



SEMICOLON
public static String SEMICOLON(Code)



STRING
public static String STRING(Code)



WHITESPACE
public static String WHITESPACE(Code)





Method Detail
checkPhp
public static boolean checkPhp(Document doc, int offset)(Code)



getDocComentText
public static String getDocComentText(Document document, int offset)(Code)
Returns text of the nearest BLOCK_COMMENT token that is located before the specified offset and whose text is started with "/**".
Parameters:
  document - a target document
Parameters:
  offset - an offest the text of the BLOCK_COMMENT token if it is possible,otherwise null.



getEmbeddedToken
public static Token getEmbeddedToken(Document document, int offset)(Code)



getEmbeddedTokenSequence
public static TokenSequence getEmbeddedTokenSequence(Document doc, int offset)(Code)



getEnteredEmbeddedTokenText
public static String getEnteredEmbeddedTokenText(Document document, int offset, boolean upToOffset)(Code)



getEnteredToken
public static Token getEnteredToken(TokenSequence seq, int offset)(Code)
Returns an entried token located nearly the caret.
Parameters:
  seq - a token sequence
Parameters:
  offset - location of the caret the token located at\before the specified offset or null if there are no tokens in both the backward direction and the forward direction.
throws:
  ConcurrentModificationException - if this token sequence is no longer valid because of an underlying mutable input source modification.



getEnteredTokenText
public static String getEnteredTokenText(TokenSequence seq, int offset, boolean upToOffset)(Code)
Returns text of an entried token located nearly the caret.
Parameters:
  seq - a token sequence
Parameters:
  offset - location of the caret
Parameters:
  upToOffset - If true, provide a text only up to the caretOffset. Otherwise, compute the text of the token under the caret. text of the token located at\before the specified offset or null if there are no tokens in both the backward direction and the forward direction.
throws:
  ConcurrentModificationException - if this token sequence is no longer valid because of an underlying mutable input source modification.



getPhpToken
public static Token getPhpToken(BaseDocument document, int offset)(Code)



getRoot
public static ASTNode getRoot(BaseDocument doc)(Code)



getToken
public static Token getToken(TokenSequence seq, int offset)(Code)



getToken
public static Token getToken(Document document, int offset)(Code)



getTokenOffset
public static int getTokenOffset(TokenSequence seq, int offset)(Code)
returns offset of token which starts on or inclides specified offset.



getTokenOffset
public static int getTokenOffset(BaseDocument doc, int offset)(Code)
returns offset of token which starts on or inclides specified offset.



getTokenSequence
public static TokenSequence getTokenSequence(BaseDocument doc)(Code)



getTokenType
public static String getTokenType(Token token)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.