Class RequireThisCheck.TryWithResourcesFrame
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame
com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.TryWithResourcesFrame
- Enclosing class:
- RequireThisCheck
A frame initiated on entering a try-with-resources construct;
holds local resources for the try block.
-
Constructor Summary
ModifierConstructorDescriptionprotected
TryWithResourcesFrame
(RequireThisCheck.AbstractFrame parent, DetailAST ident) Creates try-with-resources frame. -
Method Summary
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame
containsFieldOrVariable, containsFieldOrVariableDef, getFrameName, getFrameNameIdent, getIfContains, getParent, isProperDefinition
-
Constructor Details
-
TryWithResourcesFrame
Creates try-with-resources 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.
-