public class SyntheticArrays
extends java.lang.Object
Constructor and Description |
---|
SyntheticArrays() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isArrayClone(AnnotatedTypeMirror type,
javax.lang.model.element.Element elem) |
static AnnotatedTypeMirror.AnnotatedExecutableType |
replaceReturnType(javax.lang.model.element.Element methodElem,
AnnotatedTypeMirror.AnnotatedArrayType newReturnType) |
public static boolean isArrayClone(AnnotatedTypeMirror type, javax.lang.model.element.Element elem)
type
- a type with a method/field of elemelem
- an element which is a member of typepublic static AnnotatedTypeMirror.AnnotatedExecutableType replaceReturnType(javax.lang.model.element.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