| java.lang.Object org.netbeans.modules.php.editor.TokenUtils
TokenUtils | public class TokenUtils (Code) | | author: ads |
Inner Class :public enum PHPTokenName | |
Method Summary | |
public static boolean | checkPhp(Document doc, int offset) | public static String | getDocComentText(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 Token | getEmbeddedToken(Document document, int offset) | public static TokenSequence | getEmbeddedTokenSequence(Document doc, int offset) | public static String | getEnteredEmbeddedTokenText(Document document, int offset, boolean upToOffset) | public static Token | getEnteredToken(TokenSequence seq, int offset) Returns an entried token located nearly the caret. | public static String | getEnteredTokenText(TokenSequence seq, int offset, boolean upToOffset) Returns text of an entried token located nearly the caret. | public static Token | getPhpToken(BaseDocument document, int offset) | public static ASTNode | getRoot(BaseDocument doc) | public static Token | getToken(TokenSequence seq, int offset) | public static Token | getToken(Document document, int offset) | public static int | getTokenOffset(TokenSequence seq, int offset) returns offset of token which starts on or inclides specified offset. | public static int | getTokenOffset(BaseDocument doc, int offset) returns offset of token which starts on or inclides specified offset. | public static TokenSequence> | getTokenSequence(BaseDocument doc) | public static String | getTokenType(Token token) |
ARRAY_PAIR_MAPPER | public static String ARRAY_PAIR_MAPPER(Code) | | |
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) | | |
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) | | |
|
|