public class DisallowGlobalVariablesAdapter extends PrinterAdapter
context, logger, typeVariablesToErase| Constructor and Description |
|---|
DisallowGlobalVariablesAdapter(PrinterAdapter parentAdapter)
Builds an adapter that will delegate to the given parent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterType(TypeElement type)
Reports an error when static non-final variables are found in Globals
classes (except when Globals are part of a def.* package).
|
adaptDocComment, addAnnotation, addAnnotation, addAnnotationManager, addAnnotationWithValue, addHeader, addTypeMapping, addTypeMapping, addTypeMappings, 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 DisallowGlobalVariablesAdapter(PrinterAdapter parentAdapter)
public void afterType(TypeElement type)
afterType in class PrinterAdapter