public class SyntheticArrays extends Object
Constructor and Description |
---|
SyntheticArrays() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isArrayClone(AnnotatedTypeMirror type,
Element elem)
Returns true if this combination of type/elem represents an array.clone.
|
static AnnotatedTypeMirror.AnnotatedExecutableType |
replaceReturnType(Element methodElem,
AnnotatedTypeMirror.AnnotatedArrayType newReturnType)
Returns the annotated type of methodElem with its return type replaced by newReturnType.
|
public static boolean isArrayClone(AnnotatedTypeMirror type, Element elem)
type
- a type with a method/field of elemelem
- an element which is a member of typepublic static AnnotatedTypeMirror.AnnotatedExecutableType replaceReturnType(Element methodElem, AnnotatedTypeMirror.AnnotatedArrayType newReturnType)
methodElem
- identifies a method that should have an AnnotatedArrayType as its return
typenewReturnType
- identifies a type that should replace methodElem's return type