public interface NodeWithArrays<T>
Modifier and Type | Method and Description |
---|---|
int |
getArrayCount() |
List<List<AnnotationExpr>> |
getArraysAnnotations()
Arrays annotations are annotations on the arrays modifiers of the type.
|
T |
setArrayCount(int arrayCount) |
T |
setArraysAnnotations(List<List<AnnotationExpr>> arraysAnnotations)
For a description of the arrayAnnotations field refer to
getArraysAnnotations() |
int getArrayCount()
T setArrayCount(int arrayCount)
List<List<AnnotationExpr>> getArraysAnnotations()
Arrays annotations are annotations on the arrays modifiers of the type. Consider this example:
int @Ann1 [] @Ann2 [] array;
in this this method will return a list with the annotation expressions
@Ann1and
@Ann2
Note that the first list element of arraysAnnotations will refer to the first array modifier encountered. Considering the example the first element will be a list containing just @Ann1 while the second element will be a list containing just @Ann2.
This property is guaranteed to hold:
getArraysAnnotations().size() == getArrayCount()
If a certain array modifier has no annotation the corresponding entry of arraysAnnotations will be nullT setArraysAnnotations(List<List<AnnotationExpr>> arraysAnnotations)
getArraysAnnotations()
Copyright © 2007–2016. All rights reserved.