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:
-
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, parentFields inherited from interface spoon.reflect.code.CtJavaDocTag
JAVADOC_TAG_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts 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, updateAllParentsBelowMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.visitor.chain.CtQueryable
filterChildren, map, mapMethods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Constructor Details
-
CtJavaDocTagImpl
public CtJavaDocTagImpl()
-
-
Method Details
-
getType
Description copied from interface:CtJavaDocTagThe type of the tag- Specified by:
getTypein interfaceCtJavaDocTag- Returns:
- the type of the tag
-
setType
Description copied from interface:CtJavaDocTagDefine the type of the tag- Specified by:
setTypein interfaceCtJavaDocTag- Parameters:
type- the type name
-
setType
Description copied from interface:CtJavaDocTagDefine the type of the tag- Specified by:
setTypein interfaceCtJavaDocTag- Parameters:
type- the new type
-
setRealName
Description copied from interface:CtJavaDocTagDefine the real name of tag type- Specified by:
setRealNamein interfaceCtJavaDocTag- Parameters:
realName- the real name of type
-
getRealName
Description copied from interface:CtJavaDocTagThe type of the tag- Specified by:
getRealNamein interfaceCtJavaDocTag- Returns:
- the type of the tag
-
getContent
Description copied from interface:CtJavaDocTagGet the content of the atg- Specified by:
getContentin interfaceCtJavaDocTag- Returns:
- the content of the tag
-
setContent
Description copied from interface:CtJavaDocTagDefine the content of the tag- Specified by:
setContentin interfaceCtJavaDocTag- Parameters:
content- the new content of the tag
-
getParam
Description copied from interface:CtJavaDocTagGet the parameter of the tag return null when none is specified (only for @param and @throws)- Specified by:
getParamin interfaceCtJavaDocTag- Returns:
- the parameter
-
setParam
Description copied from interface:CtJavaDocTagDefine a parameter- Specified by:
setParamin interfaceCtJavaDocTag- Parameters:
param- the parameter
-
accept
Description copied from interface:CtVisitableAccepts a visitor- Specified by:
acceptin interfaceCtVisitable
-
clone
Description copied from interface:CtElementClone 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:
clonein interfaceCtElement- Specified by:
clonein interfaceCtJavaDocTag- Overrides:
clonein classCtElementImpl- Returns:
- a clone of this element. All children are cloned, but the parent of the returned clone is set to null.
-
toString
- Specified by:
toStringin interfaceCtElement- Overrides:
toStringin classCtElementImpl- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode().
-