Package spoon.support.reflect.code
Class CtJavaDocTagImpl
java.lang.Object
spoon.support.reflect.declaration.CtElementImpl
spoon.support.reflect.code.CtJavaDocTagImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,FactoryAccessor
,CtJavaDocTag
,SourcePositionHolder
,CtElement
,CtQueryable
,CtVisitable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface spoon.reflect.code.CtJavaDocTag
CtJavaDocTag.TagType
-
Field Summary
Fields inherited from class spoon.support.reflect.declaration.CtElementImpl
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Fields inherited from interface spoon.reflect.code.CtJavaDocTag
JAVADOC_TAG_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accepts a visitorclone()
Clone the element which calls this method in a new object.Get the content of the atggetParam()
Get the parameter of the tag return null when none is specified (only for @param and @throws)The type of the taggetType()
The type of the tag<E extends CtJavaDocTag>
EsetContent(String content)
Define the content of the tag<E extends CtJavaDocTag>
EDefine a parameter<E extends CtJavaDocTag>
EsetRealName(String realName)
Define the real name of tag type<E extends CtJavaDocTag>
EDefine the type of the tag<E extends CtJavaDocTag>
EsetType(CtJavaDocTag.TagType type)
Define the type of the tagtoString()
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.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.visitor.chain.CtQueryable
filterChildren, map, map
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Constructor Details
-
CtJavaDocTagImpl
public CtJavaDocTagImpl()
-
-
Method Details
-
getType
Description copied from interface:CtJavaDocTag
The type of the tag- Specified by:
getType
in interfaceCtJavaDocTag
- Returns:
- the type of the tag
-
setType
Description copied from interface:CtJavaDocTag
Define the type of the tag- Specified by:
setType
in interfaceCtJavaDocTag
- Parameters:
type
- the type name
-
setType
Description copied from interface:CtJavaDocTag
Define the type of the tag- Specified by:
setType
in interfaceCtJavaDocTag
- Parameters:
type
- the new type
-
setRealName
Description copied from interface:CtJavaDocTag
Define the real name of tag type- Specified by:
setRealName
in interfaceCtJavaDocTag
- Parameters:
realName
- the real name of type
-
getRealName
Description copied from interface:CtJavaDocTag
The type of the tag- Specified by:
getRealName
in interfaceCtJavaDocTag
- Returns:
- the type of the tag
-
getContent
Description copied from interface:CtJavaDocTag
Get the content of the atg- Specified by:
getContent
in interfaceCtJavaDocTag
- Returns:
- the content of the tag
-
setContent
Description copied from interface:CtJavaDocTag
Define the content of the tag- Specified by:
setContent
in interfaceCtJavaDocTag
- Parameters:
content
- the new content of the tag
-
getParam
Description copied from interface:CtJavaDocTag
Get the parameter of the tag return null when none is specified (only for @param and @throws)- Specified by:
getParam
in interfaceCtJavaDocTag
- Returns:
- the parameter
-
setParam
Description copied from interface:CtJavaDocTag
Define a parameter- Specified by:
setParam
in interfaceCtJavaDocTag
- Parameters:
param
- the parameter
-
accept
Description copied from interface:CtVisitable
Accepts a visitor- Specified by:
accept
in interfaceCtVisitable
-
clone
Description copied from interface:CtElement
Clone the element which calls this method in a new object. Note that that references are kept as is, and thus, so if you clone whole classes or methods, some parts of the cloned element (eg executable references) may still point to the initial element. In this case, consider using methodsRefactoring.copyType(CtType)
andRefactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.- Specified by:
clone
in interfaceCtElement
- Specified by:
clone
in interfaceCtJavaDocTag
- Overrides:
clone
in classCtElementImpl
-
toString
- Specified by:
toString
in interfaceCtElement
- Overrides:
toString
in classCtElementImpl
- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode()
.
-