org.netbeans.modules.cnd.api.model/1 1.3 1

org.netbeans.modules.cnd.api.model.util
Class CsmKindUtilities

java.lang.Object
  
extended by org.netbeans.modules.cnd.api.model.util.CsmKindUtilities
public class CsmKindUtilities
extends Object

Utulity functions to prevent using of "instanceof" on CsmObjects for determining type/kind of Csm element


Method Summary
static boolean isBuiltIn(CsmObject obj)
           
static boolean isClass(CsmObject obj)
           
static boolean isClassForwardDeclaration(CsmObject obj)
           
static boolean isClassifier(CsmObject obj)
           
static boolean isClassMember(CsmObject obj)
           
static boolean isCompoundClassifier(CsmObject obj)
           
static boolean isCompoundStatement(CsmObject obj)
           
static boolean isConstructor(CsmObject obj)
          checks if passed object is constructor definition or declaration; after this check it is safe to cast to CsmFunction
static boolean isCsmObject(Object obj)
           
static boolean isDeclaration(CsmObject obj)
           
static boolean isDeclarationStatement(CsmObject obj)
           
static boolean isDestructor(CsmObject obj)
           
static boolean isEnum(CsmObject obj)
           
static boolean isEnumerator(CsmObject obj)
           
static boolean isExpression(CsmObject obj)
           
static boolean isExternVariable(CsmDeclaration decl)
           
static boolean isField(CsmObject obj)
           
static boolean isFile(CsmObject obj)
           
static boolean isFileLocalVariable(CsmObject obj)
           
static boolean isFriend(CsmObject obj)
           
static boolean isFriendClass(CsmObject obj)
           
static boolean isFriendMethod(CsmObject obj)
           
static boolean isFunction(CsmObject obj)
           
static boolean isFunctionDeclaration(CsmObject obj)
           
static boolean isFunctionDefinition(CsmObject obj)
           
static boolean isGlobalFunction(CsmObject obj)
           
static boolean isGlobalVariable(CsmObject obj)
           
static boolean isIdentifiable(Object obj)
           
static boolean isInclude(CsmObject obj)
           
static boolean isInheritance(CsmObject obj)
           
static boolean isLocalVariable(CsmObject obj)
           
static boolean isMacro(CsmObject obj)
           
static boolean isMethod(CsmObject obj)
          checks if passed object is method definition or method declaration after this check it is safe to cast only to CsmFunction (not CsmMethod)
static boolean isMethodDeclaration(CsmObject obj)
          checks if passed object is method declaration; after this check it is safe to cast to CsmMethod
static boolean isMethodDefinition(CsmObject obj)
          checks if passed object is method definition; after this check it is safe to cast to CsmFunctionDefinition (not CsmMethod)
static boolean isNamedElement(CsmObject obj)
           
static boolean isNamedElement(Object obj)
           
static boolean isNamespace(CsmObject obj)
           
static boolean isNamespaceDefinition(CsmObject obj)
           
static boolean isOffsetable(Object obj)
           
static boolean isOperator(CsmObject obj)
           
static boolean isParamVariable(CsmObject obj)
           
static boolean isProject(Object obj)
           
static boolean isQualified(CsmObject obj)
           
static boolean isScope(CsmObject obj)
           
static boolean isScopeElement(CsmObject obj)
           
static boolean isStatement(CsmObject obj)
           
static boolean isType(CsmObject obj)
           
static boolean isTypedef(CsmObject obj)
           
static boolean isUsing(CsmObject obj)
           
static boolean isUsingDeclaration(CsmObject obj)
           
static boolean isUsingDirective(CsmObject obj)
           
static boolean isValidable(CsmObject obj)
           
static boolean isVariable(CsmObject obj)
           
static boolean isVariableDeclaration(CsmObject obj)
           
static boolean isVariableDefinition(CsmObject obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isProject

public static boolean isProject(Object obj)

isCsmObject

public static boolean isCsmObject(Object obj)

isValidable

public static boolean isValidable(CsmObject obj)

isQualified

public static boolean isQualified(CsmObject obj)

isDeclaration

public static boolean isDeclaration(CsmObject obj)

isBuiltIn

public static boolean isBuiltIn(CsmObject obj)

isType

public static boolean isType(CsmObject obj)

isTypedef

public static boolean isTypedef(CsmObject obj)

isStatement

public static boolean isStatement(CsmObject obj)

isDeclarationStatement

public static boolean isDeclarationStatement(CsmObject obj)

isCompoundStatement

public static boolean isCompoundStatement(CsmObject obj)

isOffsetable

public static boolean isOffsetable(Object obj)

isNamedElement

public static boolean isNamedElement(CsmObject obj)

isNamedElement

public static boolean isNamedElement(Object obj)

isEnum

public static boolean isEnum(CsmObject obj)

isEnumerator

public static boolean isEnumerator(CsmObject obj)

isClassifier

public static boolean isClassifier(CsmObject obj)

isCompoundClassifier

public static boolean isCompoundClassifier(CsmObject obj)

isClass

public static boolean isClass(CsmObject obj)

isClassForwardDeclaration

public static boolean isClassForwardDeclaration(CsmObject obj)

isScope

public static boolean isScope(CsmObject obj)

isScopeElement

public static boolean isScopeElement(CsmObject obj)

isFunction

public static boolean isFunction(CsmObject obj)

isOperator

public static boolean isOperator(CsmObject obj)

isFunctionDeclaration

public static boolean isFunctionDeclaration(CsmObject obj)

isFunctionDefinition

public static boolean isFunctionDefinition(CsmObject obj)

isFile

public static boolean isFile(CsmObject obj)

isInheritance

public static boolean isInheritance(CsmObject obj)

isNamespace

public static boolean isNamespace(CsmObject obj)

isNamespaceDefinition

public static boolean isNamespaceDefinition(CsmObject obj)

isClassMember

public static boolean isClassMember(CsmObject obj)

isVariable

public static boolean isVariable(CsmObject obj)

isVariableDeclaration

public static boolean isVariableDeclaration(CsmObject obj)

isVariableDefinition

public static boolean isVariableDefinition(CsmObject obj)

isLocalVariable

public static boolean isLocalVariable(CsmObject obj)

isFileLocalVariable

public static boolean isFileLocalVariable(CsmObject obj)

isGlobalVariable

public static boolean isGlobalVariable(CsmObject obj)

isParamVariable

public static boolean isParamVariable(CsmObject obj)

isField

public static boolean isField(CsmObject obj)

isGlobalFunction

public static boolean isGlobalFunction(CsmObject obj)

isMethod

public static boolean isMethod(CsmObject obj)
checks if passed object is method definition or method declaration after this check it is safe to cast only to CsmFunction (not CsmMethod)

See Also:
isMethodDeclaration

isMethodDeclaration

public static boolean isMethodDeclaration(CsmObject obj)
checks if passed object is method declaration; after this check it is safe to cast to CsmMethod


isMethodDefinition

public static boolean isMethodDefinition(CsmObject obj)
checks if passed object is method definition; after this check it is safe to cast to CsmFunctionDefinition (not CsmMethod)

See Also:
isMethodDeclaration

isConstructor

public static boolean isConstructor(CsmObject obj)
checks if passed object is constructor definition or declaration; after this check it is safe to cast to CsmFunction


isDestructor

public static boolean isDestructor(CsmObject obj)

isExpression

public static boolean isExpression(CsmObject obj)

isMacro

public static boolean isMacro(CsmObject obj)

isInclude

public static boolean isInclude(CsmObject obj)

isUsing

public static boolean isUsing(CsmObject obj)

isUsingDirective

public static boolean isUsingDirective(CsmObject obj)

isUsingDeclaration

public static boolean isUsingDeclaration(CsmObject obj)

isFriend

public static boolean isFriend(CsmObject obj)

isFriendClass

public static boolean isFriendClass(CsmObject obj)

isFriendMethod

public static boolean isFriendMethod(CsmObject obj)

isExternVariable

public static boolean isExternVariable(CsmDeclaration decl)

isIdentifiable

public static boolean isIdentifiable(Object obj)

org.netbeans.modules.cnd.api.model/1 1.3 1

Built on November 23 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 194 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close