Class RequireThisCheck.ForFrame
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.AbstractFrame
-
- com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.ForFrame
-
- Enclosing class:
- RequireThisCheck
private static class RequireThisCheck.ForFrame extends RequireThisCheck.AbstractFrame
A frame initiated on entering a for block; holds local for variable names.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident)
Creates for frame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getIfContains, getParent, isProperDefinition
-
-
-
-
Constructor Detail
-
ForFrame
protected ForFrame(RequireThisCheck.AbstractFrame parent, DetailAST ident)
Creates for 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.
-
-