Package org.sonar.iac.terraform.symbols
Class ListSymbol
- java.lang.Object
-
- org.sonar.iac.common.checkdsl.ContextualTree<S,T>
-
- org.sonar.iac.common.checkdsl.ContextualListTree<ListSymbol,AttributeTree,ExpressionTree>
-
- org.sonar.iac.terraform.symbols.ListSymbol
-
public class ListSymbol extends ContextualListTree<ListSymbol,AttributeTree,ExpressionTree>
-
-
Field Summary
-
Fields inherited from class org.sonar.iac.common.checkdsl.ContextualListTree
items
-
Fields inherited from class org.sonar.iac.common.checkdsl.ContextualTree
ctx, name, tree
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListSymbolfromAbsent(CheckContext ctx, String name, BlockSymbol parent)static ListSymbolfromPresent(CheckContext ctx, AttributeTree tree, BlockSymbol parent)booleanisByReference()booleanisEmpty()booleanisPresent()protected HasTextRangetoHighlight()-
Methods inherited from class org.sonar.iac.common.checkdsl.ContextualListTree
getItemIf, reportIfEmpty, reportItemIf
-
Methods inherited from class org.sonar.iac.common.checkdsl.ContextualTree
ifPresent, isAbsent, report, report, reportIfAbsent, reportIfAbsent, toSecondary
-
-
-
-
Method Detail
-
fromPresent
public static ListSymbol fromPresent(CheckContext ctx, AttributeTree tree, BlockSymbol parent)
-
fromAbsent
public static ListSymbol fromAbsent(CheckContext ctx, String name, BlockSymbol parent)
-
isEmpty
public boolean isEmpty()
- Overrides:
isEmptyin classContextualListTree<ListSymbol,AttributeTree,ExpressionTree>
-
isPresent
public boolean isPresent()
- Overrides:
isPresentin classContextualTree<ListSymbol,AttributeTree>
-
isByReference
public boolean isByReference()
-
toHighlight
@Nullable protected HasTextRange toHighlight()
- Overrides:
toHighlightin classContextualTree<ListSymbol,AttributeTree>
-
-