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
ConstructorsModifierConstructorDescriptionprotected
CatchFrame
(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates catch frame. -
Method Summary
Modifier and TypeMethodDescriptionprotected RequireThisCheck.AbstractFrame
getIfContains
(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.AbstractFrame
Get the type of the frame.- Specified by:
getType
in classRequireThisCheck.AbstractFrame
- Returns:
- a FrameType.
-
getIfContains
protected RequireThisCheck.AbstractFrame getIfContains(DetailAST identToFind, boolean lookForMethod) Description copied from class:RequireThisCheck.AbstractFrame
Check whether the frame contains a given name.- Overrides:
getIfContains
in 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.
-