public class BigDecimalAdapter extends PrinterAdapter
Warning: this adapter is not activated by default. See JSweet specifications to know how to activate this adapter.
This extension requires the big.js candy to be available in the JSweet classpath: https://github.com/jsweet-candies/candy-bigjs.
context, logger, typeVariablesToErase| Constructor and Description |
|---|
BigDecimalAdapter(PrinterAdapter parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
substituteMethodInvocation(MethodInvocationElement invocation)
Substitutes the value of a method invocation expression.
|
boolean |
substituteNewClass(NewClassElement newClass)
To override to tune the printing of a new class expression.
|
adaptDocComment, addAnnotation, addAnnotation, addAnnotationManager, addAnnotationWithValue, addHeader, addTypeMapping, addTypeMapping, addTypeMappings, afterType, endIndent, eraseSuperClass, eraseSuperInterface, findExecutableDeclarationInType, getAnnotationValue, getAnnotationValue, getContext, getErasedTypes, getFunctionalTypeMappings, getHeader, getMappedType, getModuleImportDescriptor, getParentAdapter, getParentElement, getParentElement, getPrinter, getRootRelativeName, getTranspilerOptions, getTypeMappingTarget, hasAnnotationType, isAmbientDeclaration, isMappedType, isSubstituteSuperTypes, needsImport, print, print, print, print, printArgList, printIdentifierList, printIndent, println, printMacroName, removeLastChar, removeLastChar, removeLastChars, removeLastIndent, report, report, report, report, setParentAdapter, setPrinter, space, startIndent, substitute, substituteArrayAccess, substituteAssignment, substituteAssignmentWithOperator, substituteBinaryOperator, substituteCaseStatementPattern, substituteForEachLoop, substituteIdentifier, substituteInstanceof, substituteUnaryOperator, substituteVariableAccess, types, utilpublic BigDecimalAdapter(PrinterAdapter parent)
public boolean substituteNewClass(NewClassElement newClass)
PrinterAdaptersubstituteNewClass in class PrinterAdapternewClass - the new class expressionpublic boolean substituteMethodInvocation(MethodInvocationElement invocation)
PrinterAdaptersubstituteMethodInvocation in class PrinterAdapterinvocation - the invocation being printed