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[]::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.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class spoon.support.reflect.declaration.CtElementImpl
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Fields inherited from interface spoon.reflect.declaration.CtExecutable
EXECUTABLE_SEPARATOR
-
Constructor Summary
-
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, setVisibility
Methods inherited from class spoon.support.reflect.declaration.CtExecutableImpl
addParameter, addParameterAt, addThrownType, getBody, getParameters, getReference, getSignature, getThrownTypes, getTopLevelType, removeParameter, removeThrownType, setBody, setParameters, setThrownTypes
Methods 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, updateAllParentsBelow
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface spoon.reflect.code.CtBodyHolder
setBody
Methods 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, updateAllParentsBelow
Methods inherited from interface spoon.reflect.declaration.CtExecutable
addParameter, addParameterAt, addThrownType, getBody, getParameters, getReference, getSignature, getThrownTypes, removeParameter, removeThrownType, setParameters, setThrownTypes
Methods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, map
Methods inherited from interface spoon.reflect.declaration.CtTypeMember
getTopLevelType
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Constructor Details
-
InvisibleArrayConstructorImpl
public InvisibleArrayConstructorImpl()
-
-
Method Details
-
getType
Description copied from interface:CtTypedElement
Gets this element's type.- Specified by:
getType
in interfaceCtTypedElement<T>
- Overrides:
getType
in classCtConstructorImpl<T>
-
setType
Description copied from interface:CtTypedElement
Sets this element's type.- Specified by:
setType
in interfaceCtConstructor<T>
- Specified by:
setType
in interfaceCtTypedElement<T>
- Overrides:
setType
in classCtConstructorImpl<T>
-
toString
- Specified by:
toString
in interfaceCtElement
- Overrides:
toString
in classCtElementImpl
- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode()
.
-
getDeclaringType
Description copied from interface:CtTypeMember
Gets the type that declares this class member.- Specified by:
getDeclaringType
in interfaceCtTypeMember
- Overrides:
getDeclaringType
in classCtConstructorImpl<T>
- Returns:
- declaring class
-