| java.lang.Object org.netbeans.modules.cnd.modelimpl.csm.core.AstUtil
AstUtil | public class AstUtil (Code) | | Miscellaneous AST-related static utility functions
author: Vladimir Kvasihn |
findChildOfType | public static AST findChildOfType(AST ast, int type)(Code) | | |
findId | public static String findId(AST ast, int limitingTokenType)(Code) | | Finds ID (either CPPTokenTypes.CSM_QUALIFIED_ID or CPPTokenTypes.ID)
in direct children of the given AST tree
Parameters: ast - tree to secarch ID in Parameters: limitingTokenType - type of token that, if being found, stops search-1 means that there is no such token.This parameter allows, for example, searching until "}" is encountered found id |
findId | public static String findId(AST ast, int limitingTokenType, boolean qualified)(Code) | | Finds ID (either CPPTokenTypes.CSM_QUALIFIED_ID or CPPTokenTypes.ID)
in direct children of the given AST tree
Parameters: ast - tree to secarch ID in Parameters: limitingTokenType - type of token that, if being found, stops search-1 means that there is no such token.This parameter allows, for example, searching until "}" is encountered Parameters: qualified - flag indicating if full qualified id is needed id |
findMethodName | public static AST findMethodName(AST ast)(Code) | | |
findSiblingOfType | public static AST findSiblingOfType(AST ast, int type)(Code) | | |
getLastChildRecursively | public static AST getLastChildRecursively(AST token)(Code) | | |
getRawNameInChildren | public static String[] getRawNameInChildren(AST ast)(Code) | | |
hasChildOfType | public static boolean hasChildOfType(AST ast, int type)(Code) | | |
isEmpty | public static boolean isEmpty(AST ast, boolean hasFakeChild)(Code) | | |
|
|