Class PackageRuntimeBuilderContext
java.lang.Object
spoon.support.visitor.java.internal.PackageRuntimeBuilderContext
- All Implemented Interfaces:
RuntimeBuilderContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(CtAnnotation<Annotation> ctAnnotation) voidaddConstructor(CtConstructor<?> ctConstructor) voidaddEnumValue(CtEnumValue<?> ctEnumValue) voidvoidaddFormalType(CtTypeParameter parameterRef) voidvoidaddPackage(CtPackage ctPackage) voidaddParameter(CtParameter ctParameter) voidaddRecordComponent(CtRecordComponent ctRecordComponent) voidvoidaddTypeReference(CtRole role, CtTypeReference<?> ctTypeReference) Returns the package belonging to this context.@Nullable CtTypeParametergetTypeParameter(GenericDeclaration genericDeclaration, String string)
-
Constructor Details
-
PackageRuntimeBuilderContext
-
-
Method Details
-
getPackage
Returns the package belonging to this context.- Returns:
- the package of this context
-
addType
- Specified by:
addTypein interfaceRuntimeBuilderContext
-
addAnnotation
- Specified by:
addAnnotationin interfaceRuntimeBuilderContext
-
addPackage
- Specified by:
addPackagein interfaceRuntimeBuilderContext
-
addConstructor
- Specified by:
addConstructorin interfaceRuntimeBuilderContext
-
addMethod
- Specified by:
addMethodin interfaceRuntimeBuilderContext
-
addField
- Specified by:
addFieldin interfaceRuntimeBuilderContext
-
addEnumValue
- Specified by:
addEnumValuein interfaceRuntimeBuilderContext
-
addParameter
- Specified by:
addParameterin interfaceRuntimeBuilderContext
-
addFormalType
- Specified by:
addFormalTypein interfaceRuntimeBuilderContext
-
addTypeReference
- Specified by:
addTypeReferencein interfaceRuntimeBuilderContext
-
addRecordComponent
- Specified by:
addRecordComponentin interfaceRuntimeBuilderContext
-
getTypeParameter
public @Nullable CtTypeParameter getTypeParameter(GenericDeclaration genericDeclaration, String string) - Specified by:
getTypeParameterin interfaceRuntimeBuilderContext
-