@Deprecated public class CElementBaseLabels extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_DEFAULT
Deprecated.
Default options (M_PARAMETER_TYPES enabled)
|
static int |
ALL_FULLY_QUALIFIED
Deprecated.
Qualify all elements
|
static int |
ALL_POST_QUALIFIED
Deprecated.
Post qualify all elements
|
static int |
APPEND_ROOT_PATH
Deprecated.
Add source root path.
|
static String |
COMMA_STRING
Deprecated.
Separator for parameters, base classes, exceptions, etc.
|
static String |
CONCAT_STRING
Deprecated.
Separator for appending qualifiers
|
static String |
DECL_STRING
Deprecated.
Separator for appending (return) type
|
static int |
DEFAULT_POST_QUALIFIED
Deprecated.
Default post qualify options (All except Root)
|
static int |
DEFAULT_QUALIFIED
Deprecated.
Default qualify options (All except Root)
|
static int |
F_APP_TYPE_SIGNATURE
Deprecated.
Field names contain the declared type (appended)
e.g.
|
static int |
F_FULLY_QUALIFIED
Deprecated.
Fields names are fully qualified.
|
static int |
F_POST_QUALIFIED
Deprecated.
Fields names are post qualified.
|
static int |
F_PRE_TYPE_SIGNATURE
Deprecated.
Field names contain the declared type (prepended)
e.g.
|
static int |
F_SIMPLE_NAME
Deprecated.
Static field names without qualifier.
|
static int |
M_APP_RETURNTYPE
Deprecated.
Method names contain return type (appended)
e.g.
|
static int |
M_EXCEPTIONS
Deprecated.
Method names contain thrown exceptions.
|
static int |
M_FULLY_QUALIFIED
Deprecated.
Method names are fully qualified.
|
static int |
M_PARAMETER_TYPES
Deprecated.
Method names contain parameter types.
|
static int |
M_POST_QUALIFIED
Deprecated.
Method names are post qualified.
|
static int |
M_PRE_RETURNTYPE
Deprecated.
Method names contain return type (appended)
e.g.
|
static int |
M_SIMPLE_NAME
Deprecated.
Method definition names without qualifier.
|
static int |
MF_POST_FILE_QUALIFIED
Deprecated.
Post qualify symbols with file.
|
static int |
PREPEND_ROOT_PATH
Deprecated.
Prepend source root path.
|
static int |
PROJECT_POST_QUALIFIED
Deprecated.
Post qualify container project.
|
static int |
ROOT_POST_QUALIFIED
Deprecated.
Source roots contain the project name (appended).
|
static int |
ROOT_QUALIFIED
Deprecated.
Source roots contain the project name (prepended).
|
static int |
T_FULLY_QUALIFIED
Deprecated.
Type names are fully qualified.
|
static int |
T_INHERITANCE
Deprecated.
Append base class specifications to type names.
|
static int |
TEMPLATE_ARGUMENTS
Deprecated.
Instances and specializations are qualified with arguments, templates with template parameter names.
|
static int |
TEMPLATE_PARAMETERS
Deprecated.
Templates are qualified with template parameters.
|
static int |
TU_POST_QUALIFIED
Deprecated.
Translation unit names are post qualified with their path.
|
static int |
TU_QUALIFIED
Deprecated.
Translation unit names contain the full path.
|
Constructor and Description |
---|
CElementBaseLabels()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
getContainerLabel(ICContainer container,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a container to a StringBuffer.
|
static String |
getElementLabel(ICElement element,
int flags)
Deprecated.
Returns the label for an element.
|
static void |
getElementLabel(ICElement element,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for an element to a StringBuffer.
|
static void |
getEnumeratorLabel(IEnumerator var,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for an enumerator to a StringBuffer.
|
static void |
getFieldLabel(IField field,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a field to a StringBuffer.
|
static void |
getFunctionLabel(IFunctionDeclaration func,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a function declaration to a StringBuffer.
|
static void |
getMacroLabel(IMacro macro,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a macro definition to a StringBuffer.
|
static void |
getMethodLabel(IMethodDeclaration method,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a method declaration to a StringBuffer.
|
static ISourceRoot |
getSourceRoot(ICElement element)
Deprecated.
Returns the source root of
ICElement . |
static void |
getSourceRootLabel(ISourceRoot root,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a source root to a StringBuffer.
|
static void |
getTranslationUnitLabel(ITranslationUnit tu,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a translation unit to a StringBuffer.
|
static void |
getTypeDefLabel(ITypeDef typedef,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a type definition to a StringBuffer.
|
static void |
getTypeLabel(ICElement elem,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a type to a StringBuffer.
|
static void |
getVariableLabel(IVariableDeclaration var,
int flags,
StringBuffer buf)
Deprecated.
Appends the label for a variable declaration to a StringBuffer.
|
static boolean |
isReferenced(ISourceRoot root)
Deprecated.
Returns
true if the given source root is
referenced. |
public static final int M_PARAMETER_TYPES
foo(int)
public static final int M_SIMPLE_NAME
foo(int)
public static final int M_EXCEPTIONS
foo throw( IOException )
public static final int M_APP_RETURNTYPE
foo : int
public static final int M_PRE_RETURNTYPE
int foo
public static final int M_FULLY_QUALIFIED
ClassName::size
public static final int M_POST_QUALIFIED
size - ClassName
public static final int TEMPLATE_PARAMETERS
ClassName
public static final int F_SIMPLE_NAME
fHello
public static final int F_APP_TYPE_SIGNATURE
fHello: int
public static final int F_PRE_TYPE_SIGNATURE
int fHello
public static final int F_FULLY_QUALIFIED
ClassName::fField
public static final int F_POST_QUALIFIED
fField - ClassName
public static final int T_FULLY_QUALIFIED
namespace::ClassName
public static final int TEMPLATE_ARGUMENTS
TEMPLATE_PARAMETERS
.public static final int T_INHERITANCE
MyClass : public BaseClass
public static final int TU_QUALIFIED
/MyProject/src/ClassName.cpp
public static final int TU_POST_QUALIFIED
ClassName.cpp - /MyProject/src
public static final int ROOT_QUALIFIED
MyProject/src
public static final int ROOT_POST_QUALIFIED
src - MyProject
public static final int APPEND_ROOT_PATH
func() - MyProject/src
Option only applies to getElementLabelpublic static final int PREPEND_ROOT_PATH
MyProject/src - func()
Option only applies to getElementLabelpublic static final int PROJECT_POST_QUALIFIED
folder - MyProject
if the folder is in project MyProject.public static final int MF_POST_FILE_QUALIFIED
public static final int ALL_FULLY_QUALIFIED
public static final int ALL_POST_QUALIFIED
public static final int ALL_DEFAULT
public static final int DEFAULT_QUALIFIED
public static final int DEFAULT_POST_QUALIFIED
public static final String CONCAT_STRING
public static final String COMMA_STRING
public static final String DECL_STRING
public static String getElementLabel(ICElement element, int flags)
element
- any element (IMethodDeclaration, IField, ITypeDef, IVariableDeclaration, etc.)flags
- any of the flags (M_*, F_*, ROOT_*, etc.) defined in this classpublic static void getElementLabel(ICElement element, int flags, StringBuffer buf)
element
- any element (IMethodDeclaration, IField, ITypeDef, IVariableDeclaration, etc.)flags
- any of the flags (M_*, F_*, ROOT_*, etc.) defined in this classbuf
- the buffer to append the labelpublic static void getMacroLabel(IMacro macro, int flags, StringBuffer buf)
macro
- a macro definitionflags
- MF_POST_FILE_QUALIFIED
, or 0.buf
- the buffer to append the label to.public static void getMethodLabel(IMethodDeclaration method, int flags, StringBuffer buf)
method
- a method declarationflags
- any of the M_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the labelpublic static void getFieldLabel(IField field, int flags, StringBuffer buf)
field
- a fieldflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the labelpublic static void getVariableLabel(IVariableDeclaration var, int flags, StringBuffer buf)
var
- a variable declarationflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the labelpublic static void getEnumeratorLabel(IEnumerator var, int flags, StringBuffer buf)
var
- an enumeratorflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the labelpublic static void getFunctionLabel(IFunctionDeclaration func, int flags, StringBuffer buf)
func
- a function declarationflags
- any of the M_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the labelpublic static void getTypeDefLabel(ITypeDef typedef, int flags, StringBuffer buf)
typedef
- a type definitionflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the labelpublic static void getSourceRootLabel(ISourceRoot root, int flags, StringBuffer buf)
root
- a source rootflags
- any of the ROOT_* flags, and PROJECT_POST_QUALIFIEDbuf
- the buffer to append the labelpublic static void getContainerLabel(ICContainer container, int flags, StringBuffer buf)
container
- a containerflags
- any of the ROOT_* flags, and PROJECT_POST_QUALIFIEDbuf
- the buffer to append the labelpublic static void getTranslationUnitLabel(ITranslationUnit tu, int flags, StringBuffer buf)
tu
- a translation unitflags
- any of the TU_* flagsbuf
- the buffer to append the labelpublic static void getTypeLabel(ICElement elem, int flags, StringBuffer buf)
elem
- a typeflags
- any of the T_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the labelpublic static ISourceRoot getSourceRoot(ICElement element)
ICElement
. If the given
element is already a source root, the element itself is returned.public static boolean isReferenced(ISourceRoot root)
true
if the given source root is
referenced. This means it is own by a different project but is referenced
by the root's parent. Returns false
if the given root
doesn't have an underlying resource.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.