Class RequireThisCheck.CatchFrame
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame
com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.CatchFrame
- Enclosing class:
- RequireThisCheck
A frame initiated on entering a catch block; holds local catch variable names.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCatchFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates catch frame. -
Method Summary
Modifier and TypeMethodDescriptionprotected RequireThisCheck.AbstractFramegetIfContains(DetailAST identToFind, boolean lookForMethod) Check whether the frame contains a given name.getType()Get the type of the frame.Methods inherited from class com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame
containsFieldOrVariable, containsFieldOrVariableDef, getFrameName, getFrameNameIdent, getParent, isProperDefinition
-
Constructor Details
-
CatchFrame
Creates catch frame.- Parameters:
parent- parent frame.ident- ident frame name ident.
-
-
Method Details
-
getType
Description copied from class:RequireThisCheck.AbstractFrameGet the type of the frame.- Specified by:
getTypein classRequireThisCheck.AbstractFrame- Returns:
- a FrameType.
-
getIfContains
protected RequireThisCheck.AbstractFrame getIfContains(DetailAST identToFind, boolean lookForMethod) Description copied from class:RequireThisCheck.AbstractFrameCheck whether the frame contains a given name.- Overrides:
getIfContainsin classRequireThisCheck.AbstractFrame- Parameters:
identToFind- IDENT ast of the name we're looking for.lookForMethod- whether we are looking for a method name.- Returns:
- whether it was found.
-