Package org.eclipse.cdt.core.dom.ast
Class ASTSignatureUtil
java.lang.Object
org.eclipse.cdt.core.dom.ast.ASTSignatureUtil
Deprecated.
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.Returns the String representation of the IASTBinaryExpression's operator.static String
getCastOperatorString
(IASTCastExpression expression) Deprecated.Returns the String representation of the IASTCastExpression's operator.static String
getExpressionString
(IASTExpression expression) Deprecated.Return a string representation for the given IASTExpression.static String
Deprecated.This function is used to return the signature of an IASTInitializer.static String
getNodeSignature
(IASTNode node) Deprecated.Return's the String representation of a node's type (if available).static String
getParameterSignature
(IASTDeclarator decltor) Deprecated.Returns the parameter signature for an IASTDeclarator as a comma separated list wrapped in parenthesis.static String[]
getParameterSignatureArray
(IASTDeclarator decltor) Deprecated.Returns a String[] corresponding to the signatures of individual parameters for an IASTDeclarator.static String
getProblemMessage
(int problemID, String detail) Deprecated.static String
getSignature
(IASTDeclarator declarator) Deprecated.Returns the String signature corresponding to an IASTDeclarator.static String
getSignature
(IASTDeclSpecifier declSpec) Deprecated.Returns the String representation of the signature for the IASTDeclSpecifier.static String
getSignature
(IASTTypeId typeId) Deprecated.Returns the String representation of the signature for the IASTTypeId.static String
Deprecated.Returns the String representation of the IASTUnaryExpression's operator.
-
Constructor Details
-
ASTSignatureUtil
public ASTSignatureUtil()Deprecated.
-
-
Method Details
-
getNodeSignature
Deprecated.Return's the String representation of a node's type (if available). This is currently only being used for testing.- Parameters:
node
-
-
getParameterSignature
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
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
Deprecated.This function is used to return the signature of an IASTInitializer.- Parameters:
init
- an initializer- Returns:
- the signature of an IASTInitializer
-
getSignature
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
Deprecated.Returns the String representation of the signature for the IASTDeclSpecifier.- Parameters:
declSpec
-- Returns:
- the String representation of the signature for the IASTDeclSpecifier
-
getSignature
Deprecated.Returns the String representation of the signature for the IASTTypeId.- Parameters:
typeId
-- Returns:
- the String representation of the signature for the IASTTypeId
-
getExpressionString
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
Deprecated.Returns the String representation of the IASTCastExpression's operator.- Parameters:
expression
-- Returns:
- the String representation of the IASTCastExpression's operator
-
getUnaryOperatorString
Deprecated.Returns the String representation of the IASTUnaryExpression's operator.- Parameters:
ue
-- Returns:
- the String representation of the IASTUnaryExpression's operator
-
getBinaryOperatorString
Deprecated.Returns the String representation of the IASTBinaryExpression's operator.- Parameters:
be
-- Returns:
- the String representation of the IASTBinaryExpression's operator
-
getProblemMessage
Deprecated.
-
ASTStringUtil
, instead.