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
private static class RequireThisCheck.CatchFrame extends RequireThisCheck.AbstractFrame
A frame initiated on entering a catch block; holds local catch variable names.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CatchFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident)
Creates catch frame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequireThisCheck.AbstractFrame
getIfContains(DetailAST identToFind, boolean lookForMethod)
Check whether the frame contains a given name.RequireThisCheck.FrameType
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 Detail
-
CatchFrame
protected CatchFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident)
Creates catch frame.- Parameters:
parent
- parent frame.ident
- ident frame name ident.
-
-
Method Detail
-
getType
public RequireThisCheck.FrameType 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.
-
-