public class CppExpressionFormattingPolicy extends DefaultExpressionFormattingPolicy
DefaultExpressionFormattingPolicy.DefaultFormattingConfigExpressionFormattingPolicy.BinaryExpressionFormatting, ExpressionFormattingPolicy.FormattingConfig, ExpressionFormattingPolicy.TernaryExpressionFormatting, ExpressionFormattingPolicy.UnaryExpressionFormatting| Constructor and Description |
|---|
CppExpressionFormattingPolicy(CppNativeMapper cppNativeMapper,
IncludeCollector includeCollector) |
getAnd, getBang, getBigIntegerCastingToNative, getComma, getDivide, getEq, getGe, getGt, getLe, getLeftParenthesis, getLeftShift, getLogicalAnd, getLogicalOr, getLt, getMinus, getModulo, getMultiply, getNe, getOr, getPlus, getQuestionMark, getRightShift, getTilde, getUnaryMinus, getUnaryPlus, getXorpublic CppExpressionFormattingPolicy(CppNativeMapper cppNativeMapper, IncludeCollector includeCollector)
public ExpressionFormattingPolicy.FormattingConfig getConfig()
ExpressionFormattingPolicygetConfig in interface ExpressionFormattingPolicygetConfig in class DefaultExpressionFormattingPolicypublic java.lang.String getDecimalLiteral(Expression expr, boolean isNegative)
public java.lang.String getBinaryLiteral(Expression expr, boolean isNegative)
public java.lang.String getHexadecimalLiteral(Expression expr, boolean isNegative)
public java.lang.String getOctalLiteral(Expression expr, boolean isNegative)
public java.lang.String getFloatLiteral(Expression expr, boolean isNegative)
public java.lang.String getDoubleLiteral(Expression expr, boolean isNegative)
public java.lang.String getBoolLiteral(Expression expr)
public java.lang.String getStringLiteral(Expression expr) throws ZserioExtensionException
ZserioExtensionExceptionpublic java.lang.String getIndex(Expression expr)
public java.lang.String getIdentifier(Expression expr, boolean isLastInDot, boolean isSetter) throws ZserioExtensionException
ZserioExtensionExceptionpublic ExpressionFormattingPolicy.UnaryExpressionFormatting getFunctionCall(Expression expr)
public ExpressionFormattingPolicy.UnaryExpressionFormatting getLengthOf(Expression expr)
public ExpressionFormattingPolicy.UnaryExpressionFormatting getValueOf(Expression expr) throws ZserioExtensionException
ZserioExtensionExceptionpublic ExpressionFormattingPolicy.UnaryExpressionFormatting getNumBits(Expression expr)
public ExpressionFormattingPolicy.BinaryExpressionFormatting getArrayElement(Expression expr, boolean isSetter)
public ExpressionFormattingPolicy.BinaryExpressionFormatting getDot(Expression expr)
public ExpressionFormattingPolicy.BinaryExpressionFormatting getIsSet(Expression expr)
protected java.lang.String getAccessPrefixForCompoundType()
protected void formatFieldGetter(java.lang.StringBuilder result,
boolean isMostLeftId,
Field field)
Last updated 2024-07-18 11:31:32