public static enum LanguageConstruct.Builtin extends java.lang.Enum<LanguageConstruct.Builtin> implements LanguageConstruct
LanguageConstruct.Builtin
Enum Constant and Description |
---|
BRANCH |
GROOVY_ELVIS_OPERATOR |
GROOVY_FIELD_EXPRESSION |
GROOVY_SAFE_ATTRIBUTE |
GROOVY_SAFE_METHOD |
GROOVY_SAFE_PROPERTY |
METHOD |
STATEMENT |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
calcCoverageMsg(SourceInfo sourceRegion,
int trueBranchCount,
int falseBranchCount,
java.util.Locale locale)
Calculates the message to be shown for the construct given its location in source, its coverage count and the current locale
|
java.lang.String |
getId() |
static LanguageConstruct.Builtin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LanguageConstruct.Builtin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageConstruct.Builtin METHOD
public static final LanguageConstruct.Builtin STATEMENT
public static final LanguageConstruct.Builtin BRANCH
public static final LanguageConstruct.Builtin GROOVY_FIELD_EXPRESSION
public static final LanguageConstruct.Builtin GROOVY_SAFE_METHOD
public static final LanguageConstruct.Builtin GROOVY_SAFE_PROPERTY
public static final LanguageConstruct.Builtin GROOVY_SAFE_ATTRIBUTE
public static final LanguageConstruct.Builtin GROOVY_ELVIS_OPERATOR
public static LanguageConstruct.Builtin[] values()
for (LanguageConstruct.Builtin c : LanguageConstruct.Builtin.values()) System.out.println(c);
public static LanguageConstruct.Builtin valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getId()
getId
in interface LanguageConstruct
public java.lang.String calcCoverageMsg(SourceInfo sourceRegion, int trueBranchCount, int falseBranchCount, java.util.Locale locale)
LanguageConstruct
calcCoverageMsg
in interface LanguageConstruct
sourceRegion
- the region in source where the construct occurredtrueBranchCount
- the coverage count for the true branch. If the construct is not a branch, the coverage is supplied herefalseBranchCount
- the coverage count for the false branch or 0 if the construct doesn't support false brancheslocale
- the locale for the message