Class InvisibleArrayConstructorImpl<T>
java.lang.Object
spoon.support.reflect.declaration.CtElementImpl
spoon.support.reflect.declaration.CtNamedElementImpl
spoon.support.reflect.declaration.CtExecutableImpl<T>
spoon.support.reflect.declaration.CtConstructorImpl<T>
spoon.support.reflect.declaration.InvisibleArrayConstructorImpl<T>
- All Implemented Interfaces:
Serializable,Cloneable,FactoryAccessor,CtBodyHolder,SourcePositionHolder,CtConstructor<T>,CtElement,CtExecutable<T>,CtFormalTypeDeclarer,CtModifiable,CtNamedElement,CtShadowable,CtTypedElement<T>,CtTypeMember,CtQueryable,CtVisitable
This class is used to represent the constructor of an array when calling with an expression like
String[]::new
Warning: 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.- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class spoon.support.reflect.declaration.CtElementImpl
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parentFields inherited from interface spoon.reflect.declaration.CtExecutable
EXECUTABLE_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the type that declares this class member.getType()Gets this element's type.<C extends CtTypedElement>
CsetType(CtTypeReference type)Sets this element's type.toString()Methods inherited from class spoon.support.reflect.declaration.CtConstructorImpl
accept, addFormalCtTypeParameter, addFormalCtTypeParameterAt, addModifier, clone, getExtendedModifiers, getFormalCtTypeParameters, getModifiers, getSimpleName, getVisibility, hasModifier, isAbstract, isCompactConstructor, isFinal, isNative, isPrivate, isProtected, isPublic, isShadow, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, removeFormalCtTypeParameter, removeModifier, setCompactConstructor, setExtendedModifiers, setFormalCtTypeParameters, setModifiers, setShadow, setSimpleName, setVisibilityMethods inherited from class spoon.support.reflect.declaration.CtExecutableImpl
addParameter, addParameterAt, addThrownType, getBody, getParameters, getReference, getSignature, getThrownTypes, getTopLevelType, removeParameter, removeThrownType, setBody, setParameters, setThrownTypesMethods inherited from class spoon.support.reflect.declaration.CtElementImpl
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, updateAllParentsBelowMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface spoon.reflect.code.CtBodyHolder
setBodyMethods inherited from interface spoon.reflect.declaration.CtElement
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, updateAllParentsBelowMethods inherited from interface spoon.reflect.declaration.CtExecutable
addParameter, addParameterAt, addThrownType, getBody, getParameters, getReference, getSignature, getThrownTypes, removeParameter, removeThrownType, setParameters, setThrownTypesMethods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, mapMethods inherited from interface spoon.reflect.declaration.CtTypeMember
getTopLevelTypeMethods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Constructor Details
-
InvisibleArrayConstructorImpl
public InvisibleArrayConstructorImpl()
-
-
Method Details
-
getType
Description copied from interface:CtTypedElementGets this element's type.- Specified by:
getTypein interfaceCtTypedElement<T>- Overrides:
getTypein classCtConstructorImpl<T>
-
setType
Description copied from interface:CtTypedElementSets this element's type.- Specified by:
setTypein interfaceCtConstructor<T>- Specified by:
setTypein interfaceCtTypedElement<T>- Overrides:
setTypein classCtConstructorImpl<T>
-
toString
- Specified by:
toStringin interfaceCtElement- Overrides:
toStringin classCtElementImpl- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode().
-
getDeclaringType
Description copied from interface:CtTypeMemberGets the type that declares this class member.- Specified by:
getDeclaringTypein interfaceCtTypeMember- Overrides:
getDeclaringTypein classCtConstructorImpl<T>- Returns:
- declaring class
-