public class AddPrefixToNonPublicMembersAdapter extends PrinterAdapter
Note that this could be dangerous to use for protected fields if wanting to access them from subclasses declared in other JSweet projects.
context, logger, typeVariablesToErase| Constructor and Description |
|---|
AddPrefixToNonPublicMembersAdapter(PrinterAdapter parentAdapter)
Builds the adapter and delegate to the given parent.
|
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, substituteMethodInvocation, substituteNewClass, substituteUnaryOperator, substituteVariableAccess, types, utilpublic AddPrefixToNonPublicMembersAdapter(PrinterAdapter parentAdapter)
This adapter just uses an annotation manager that will install
@Name annotations when the fields are not public.