public class InvisibleArrayConstructorImpl<T> extends CtConstructorImpl<T>
String[]::newWarning: this type is never present in the Spoon model. It is created dynamically when calling the executable of an expression such as the one in the example.
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
EXECUTABLE_SEPARATOR
Constructor and Description |
---|
InvisibleArrayConstructorImpl() |
Modifier and Type | Method and Description |
---|---|
CtType<T> |
getDeclaringType()
Gets the type that declares this class member.
|
CtTypeReference<T> |
getType()
Gets this element's type.
|
<C extends CtTypedElement> |
setType(CtTypeReference<T> type)
Sets this element's type.
|
java.lang.String |
toString() |
accept, addFormalCtTypeParameter, addModifier, clone, getExtendedModifiers, getFormalCtTypeParameters, getModifiers, getSimpleName, getVisibility, hasModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isShadow, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, removeFormalCtTypeParameter, removeModifier, setExtendedModifiers, setFormalCtTypeParameters, setModifiers, setShadow, setSimpleName, setVisibility
addParameter, addThrownType, getBody, getParameters, getReference, getSignature, getThrownTypes, getTopLevelType, removeParameter, removeThrownType, setBody, setParameters, setThrownTypes
addAnnotation, addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
addParameter, addThrownType, getBody, getParameters, getReference, getSignature, getThrownTypes, removeParameter, removeThrownType, setParameters, setThrownTypes
setBody
getTopLevelType
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toStringDebug, updateAllParentsBelow
getFactory, setFactory
filterChildren, map, map
public CtTypeReference<T> getType()
CtTypedElement
getType
in interface CtTypedElement<T>
getType
in class CtConstructorImpl<T>
public <C extends CtTypedElement> C setType(CtTypeReference<T> type)
CtTypedElement
setType
in interface CtConstructor<T>
setType
in interface CtTypedElement<T>
setType
in class CtConstructorImpl<T>
public java.lang.String toString()
toString
in interface CtElement
toString
in class CtElementImpl
Environment.getPrettyPrintingMode()
.public CtType<T> getDeclaringType()
CtTypeMember
getDeclaringType
in interface CtTypeMember
getDeclaringType
in class CtConstructorImpl<T>
Copyright © 2007–2021 Inria. All rights reserved.