Eclipse CDT
7.0

org.eclipse.cdt.core.dom.ast
Class ASTSignatureUtil

java.lang.Object
  extended by org.eclipse.cdt.core.dom.ast.ASTSignatureUtil

Deprecated. The class is provided for testing purposes, only. It should not be used by clients. Within CDT it is recommended to use ASTStringUtil, instead.

@Deprecated
public class ASTSignatureUtil
extends java.lang.Object

This is a utility class to help convert AST elements to Strings corresponding to the AST element's signature.


Constructor Summary
ASTSignatureUtil()
          Deprecated.  
 
Method Summary
static java.lang.String getBinaryOperatorString(IASTBinaryExpression be)
          Deprecated. Returns the String representation of the IASTBinaryExpression's operator.
static java.lang.String getCastOperatorString(IASTCastExpression expression)
          Deprecated. Returns the String representation of the IASTCastExpression's operator.
static java.lang.String getExpressionString(IASTExpression expression)
          Deprecated. Return a string representation for the given IASTExpression.
static java.lang.String getInitializerString(IASTInitializer init)
          Deprecated. This function is used to return the signature of an IASTInitializer.
static java.lang.String getNodeSignature(IASTNode node)
          Deprecated. Return's the String representation of a node's type (if available).
static java.lang.String getParameterSignature(IASTDeclarator decltor)
          Deprecated. Returns the parameter signature for an IASTDeclarator as a comma separated list wrapped in parenthesis.
static java.lang.String[] getParameterSignatureArray(IASTDeclarator decltor)
          Deprecated. Returns a String[] corresponding to the signatures of individual parameters for an IASTDeclarator.
static java.lang.String getProblemMessage(int problemID, java.lang.String detail)
          Deprecated.  
static java.lang.String getSignature(IASTDeclarator declarator)
          Deprecated. Returns the String signature corresponding to an IASTDeclarator.
static java.lang.String getSignature(IASTDeclSpecifier declSpec)
          Deprecated. Returns the String representation of the signature for the IASTDeclSpecifier.
static java.lang.String getSignature(IASTTypeId typeId)
          Deprecated. Returns the String representation of the signature for the IASTTypeId.
static java.lang.String getUnaryOperatorString(IASTUnaryExpression ue)
          Deprecated. Returns the String representation of the IASTUnaryExpression's operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTSignatureUtil

public ASTSignatureUtil()
Deprecated. 
Method Detail

getNodeSignature

public static java.lang.String getNodeSignature(IASTNode node)
Deprecated. 
Return's the String representation of a node's type (if available). This is currently only being used for testing.

Parameters:
node -

getParameterSignature

public static java.lang.String getParameterSignature(IASTDeclarator decltor)
Deprecated. 
Returns the parameter signature for an IASTDeclarator as a comma separated list wrapped in parenthesis. This method uses ASTSignatureUtil#getParametersSignatureArray(IASTArray) to build a comma separated list of the parameter's signatures and then wraps them in parenthesis.

Parameters:
decltor -
Returns:
the parameter signature for an IASTDeclarator as a comma separated list wrapped in parenthesis

getParameterSignatureArray

public static java.lang.String[] getParameterSignatureArray(IASTDeclarator decltor)
Deprecated. 
Returns a String[] corresponding to the signatures of individual parameters for an IASTDeclarator.

Parameters:
decltor -
Returns:
a String[] corresponding to the signatures of individual parameters for an IASTDeclarator

getInitializerString

public static java.lang.String getInitializerString(IASTInitializer init)
Deprecated. 
This function is used to return the signature of an IASTInitializer.

Parameters:
init - an initializer
Returns:
the signature of an IASTInitializer

getSignature

public static java.lang.String getSignature(IASTDeclarator declarator)
Deprecated. 
Returns the String signature corresponding to an IASTDeclarator. This includes the signature of the parameters which is built via ASTSignatureUtil#getParameterSignature(IASTDeclarator) if the declarator is for a function.

Parameters:
declarator -
Returns:
the String signature corresponding to an IASTDeclarator

getSignature

public static java.lang.String getSignature(IASTDeclSpecifier declSpec)
Deprecated. 
Returns the String representation of the signature for the IASTDeclSpecifier.

Parameters:
declSpec -
Returns:
the String representation of the signature for the IASTDeclSpecifier

getSignature

public static java.lang.String getSignature(IASTTypeId typeId)
Deprecated. 
Returns the String representation of the signature for the IASTTypeId.

Parameters:
typeId -
Returns:
the String representation of the signature for the IASTTypeId

getExpressionString

public static java.lang.String getExpressionString(IASTExpression expression)
Deprecated. 
Return a string representation for the given IASTExpression. Expressions having an extension kind should provide their own toString method which will be called by this.

Parameters:
expression -
Returns:
a string representation for the given IASTExpression

getCastOperatorString

public static java.lang.String getCastOperatorString(IASTCastExpression expression)
Deprecated. 
Returns the String representation of the IASTCastExpression's operator.

Parameters:
expression -
Returns:
the String representation of the IASTCastExpression's operator

getUnaryOperatorString

public static java.lang.String getUnaryOperatorString(IASTUnaryExpression ue)
Deprecated. 
Returns the String representation of the IASTUnaryExpression's operator.

Parameters:
ue -
Returns:
the String representation of the IASTUnaryExpression's operator

getBinaryOperatorString

public static java.lang.String getBinaryOperatorString(IASTBinaryExpression be)
Deprecated. 
Returns the String representation of the IASTBinaryExpression's operator.

Parameters:
be -
Returns:
the String representation of the IASTBinaryExpression's operator

getProblemMessage

public static java.lang.String getProblemMessage(int problemID,
                                                 java.lang.String detail)
Deprecated. 

Eclipse CDT
7.0

Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.