Package org.eclipse.cdt.core.dom.ast
Class ASTSignatureUtil
- java.lang.Object
-
- org.eclipse.cdt.core.dom.ast.ASTSignatureUtil
-
@Deprecated public class ASTSignatureUtil extends java.lang.ObjectDeprecated.The class is provided for testing purposes, only. It should not be used by clients. Within CDT it is recommended to useASTStringUtil, instead.This is a utility class to help convert AST elements to Strings corresponding to the AST element's signature.- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description ASTSignatureUtil()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringgetBinaryOperatorString(IASTBinaryExpression be)Deprecated.Returns the String representation of the IASTBinaryExpression's operator.static java.lang.StringgetCastOperatorString(IASTCastExpression expression)Deprecated.Returns the String representation of the IASTCastExpression's operator.static java.lang.StringgetExpressionString(IASTExpression expression)Deprecated.Return a string representation for the given IASTExpression.static java.lang.StringgetInitializerString(IASTInitializer init)Deprecated.This function is used to return the signature of an IASTInitializer.static java.lang.StringgetNodeSignature(IASTNode node)Deprecated.Return's the String representation of a node's type (if available).static java.lang.StringgetParameterSignature(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.StringgetProblemMessage(int problemID, java.lang.String detail)Deprecated.static java.lang.StringgetSignature(IASTDeclarator declarator)Deprecated.Returns the String signature corresponding to an IASTDeclarator.static java.lang.StringgetSignature(IASTDeclSpecifier declSpec)Deprecated.Returns the String representation of the signature for the IASTDeclSpecifier.static java.lang.StringgetSignature(IASTTypeId typeId)Deprecated.Returns the String representation of the signature for the IASTTypeId.static java.lang.StringgetUnaryOperatorString(IASTUnaryExpression ue)Deprecated.Returns the String representation of the IASTUnaryExpression's operator.
-
-
-
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.
-
-