com.puppycrawl.tools.checkstyle.checks.blocks

Class RightCurlyOption

Implemented Interfaces:
Serializable

public final class RightCurlyOption
extends AbstractOption

Represents the options for placing the right curly brace '}'.

Version:
1

Author:
Oliver Burn

Field Summary

static RightCurlyOption
ALONE
Represents the policy that the brace must be alone on the line.
static RightCurlyOption
SAME
Represents the policy that the brace must be on the same line as the next statement.

Method Summary

protected Map
getStrToOpt()

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractOption

decode, getStrToOpt, readResolve, toString

Field Details

ALONE

public static final RightCurlyOption ALONE
Represents the policy that the brace must be alone on the line. For example:
 try {
     ...
 }
 finally {
 


SAME

public static final RightCurlyOption SAME
Represents the policy that the brace must be on the same line as the next statement. For example:
 try {
     ...
 } finally {
 

Method Details

getStrToOpt

protected Map getStrToOpt()
Overrides:
getStrToOpt in interface AbstractOption

See Also:
AbstractOption