Uses of Class
com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame
Packages that use RequireThisCheck.AbstractFrame
Package
Description
Contains the Coding checks that are
bundled with the main distribution.
-
Uses of RequireThisCheck.AbstractFrame in com.puppycrawl.tools.checkstyle.checks.coding
Modifier and TypeClassDescriptionprivate static classAn anonymous class frame; holds instance variable names.private static classA frame initiated on entering a statement list; holds local variable names.private static classA frame initiated on entering a catch block; holds local catch variable names.private static classA frame initiated at class, enum or interface definition; holds instance variable names.private static classA frame initiated at constructor definition.private static classA frame initiated on entering a for block; holds local for variable names.private static classA frame initiated at method definition; holds a method definition token.private static classA frame initiated on entering a try-with-resources construct; holds local resources for the try block.Fields in com.puppycrawl.tools.checkstyle.checks.coding declared as RequireThisCheck.AbstractFrameModifier and TypeFieldDescriptionprivate final RequireThisCheck.AbstractFrameRequireThisCheck.AbstractFrame.parentParent frame.Fields in com.puppycrawl.tools.checkstyle.checks.coding with type parameters of type RequireThisCheck.AbstractFrameModifier and TypeFieldDescriptionprivate final Deque<RequireThisCheck.AbstractFrame>RequireThisCheck.currentFrame for the currently processed AST.private Map<DetailAST,RequireThisCheck.AbstractFrame> RequireThisCheck.framesTree of all the parsed frames.Methods in com.puppycrawl.tools.checkstyle.checks.coding that return RequireThisCheck.AbstractFrameModifier and TypeMethodDescriptionprivate RequireThisCheck.AbstractFrameRequireThisCheck.findClassFrame(DetailAST name, boolean lookForMethod) Find the class frame containing declaration.private RequireThisCheck.AbstractFrameFind frame containing declaration.private static RequireThisCheck.AbstractFrameRequireThisCheck.findFrame(RequireThisCheck.AbstractFrame frame, DetailAST name, boolean lookForMethod) Find frame containing declaration.private RequireThisCheck.AbstractFrameRequireThisCheck.getClassFrameWhereViolationIsFound(DetailAST ast) Returns the class frame where violation is found (where the field is used without 'this') or null otherwise.private RequireThisCheck.AbstractFrameRequireThisCheck.getFieldWithoutThis(DetailAST ast, int parentType) Returns the frame where the field is declared, if the given field is used without 'this', and null otherwise.protected RequireThisCheck.AbstractFrameRequireThisCheck.AbstractFrame.getIfContains(DetailAST identToFind, boolean lookForMethod) Check whether the frame contains a given name.protected RequireThisCheck.AbstractFrameRequireThisCheck.CatchFrame.getIfContains(DetailAST identToFind, boolean lookForMethod) protected RequireThisCheck.AbstractFrameRequireThisCheck.ClassFrame.getIfContains(DetailAST identToFind, boolean lookForMethod) private RequireThisCheck.AbstractFrameRequireThisCheck.getMethodWithoutThis(DetailAST ast) Returns the frame where the method is declared, if the given method is used without 'this' and null otherwise.protected RequireThisCheck.AbstractFrameRequireThisCheck.AbstractFrame.getParent()Returns the parent frame.Methods in com.puppycrawl.tools.checkstyle.checks.coding with parameters of type RequireThisCheck.AbstractFrameModifier and TypeMethodDescriptionprivate static voidRequireThisCheck.collectMethodDeclarations(Deque<RequireThisCheck.AbstractFrame> frameStack, DetailAST ast, RequireThisCheck.AbstractFrame frame) CollectsMETHOD_DEFdeclarations.private static voidRequireThisCheck.collectVariableDeclarations(DetailAST ast, RequireThisCheck.AbstractFrame frame) Collects variable declarations.private static RequireThisCheck.AbstractFrameRequireThisCheck.findFrame(RequireThisCheck.AbstractFrame frame, DetailAST name, boolean lookForMethod) Find frame containing declaration.private static booleanRequireThisCheck.isInsideConstructorFrame(RequireThisCheck.AbstractFrame frame) Checks whether a field usage frame is inside constructor frame.private static booleanRequireThisCheck.isReturnedVariable(RequireThisCheck.AbstractFrame currentFrame, DetailAST ident) Checks whether the current variable is returned from the method.private static booleanRequireThisCheck.isUserDefinedArrangementOfThis(RequireThisCheck.AbstractFrame currentFrame, DetailAST ident) Checks whether user arranges 'this' for variable in method, constructor, or block on his own.private voidRequireThisCheck.logViolation(String msgKey, DetailAST ast, RequireThisCheck.AbstractFrame frame) Helper method to log a Violation.Method parameters in com.puppycrawl.tools.checkstyle.checks.coding with type arguments of type RequireThisCheck.AbstractFrameModifier and TypeMethodDescriptionprivate static voidRequireThisCheck.collectDeclarations(Deque<RequireThisCheck.AbstractFrame> frameStack, DetailAST ast) Parses the next AST for declarations.private static voidRequireThisCheck.collectMethodDeclarations(Deque<RequireThisCheck.AbstractFrame> frameStack, DetailAST ast, RequireThisCheck.AbstractFrame frame) CollectsMETHOD_DEFdeclarations.private voidRequireThisCheck.endCollectingDeclarations(Queue<RequireThisCheck.AbstractFrame> frameStack, DetailAST ast) Ends parsing of the AST for declarations.Constructors in com.puppycrawl.tools.checkstyle.checks.coding with parameters of type RequireThisCheck.AbstractFrameModifierConstructorDescriptionprotectedAbstractFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Constructor -- invocable only via super() from subclasses.protectedAnonymousClassFrame(RequireThisCheck.AbstractFrame parent, String frameName) Creates anonymous class frame.protectedBlockFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates block frame.protectedCatchFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates catch frame.privateClassFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates new instance of ClassFrame.protectedConstructorFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates a constructor frame.protectedForFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates for frame.protectedMethodFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates method frame.protectedTryWithResourcesFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates try-with-resources frame.