Class PackageRuntimeBuilderContext
java.lang.Object
spoon.support.visitor.java.internal.PackageRuntimeBuilderContext
- All Implemented Interfaces:
RuntimeBuilderContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation(CtAnnotation<Annotation> ctAnnotation)
void
addConstructor(CtConstructor<?> ctConstructor)
void
addEnumValue(CtEnumValue<?> ctEnumValue)
void
void
addFormalType(CtTypeParameter parameterRef)
void
void
addPackage(CtPackage ctPackage)
void
addParameter(CtParameter ctParameter)
void
addRecordComponent(CtRecordComponent ctRecordComponent)
void
void
addTypeReference(CtRole role, CtTypeReference<?> ctTypeReference)
Returns the package belonging to this context.@Nullable CtTypeParameter
getTypeParameter(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:
addType
in interfaceRuntimeBuilderContext
-
addAnnotation
- Specified by:
addAnnotation
in interfaceRuntimeBuilderContext
-
addPackage
- Specified by:
addPackage
in interfaceRuntimeBuilderContext
-
addConstructor
- Specified by:
addConstructor
in interfaceRuntimeBuilderContext
-
addMethod
- Specified by:
addMethod
in interfaceRuntimeBuilderContext
-
addField
- Specified by:
addField
in interfaceRuntimeBuilderContext
-
addEnumValue
- Specified by:
addEnumValue
in interfaceRuntimeBuilderContext
-
addParameter
- Specified by:
addParameter
in interfaceRuntimeBuilderContext
-
addFormalType
- Specified by:
addFormalType
in interfaceRuntimeBuilderContext
-
addTypeReference
- Specified by:
addTypeReference
in interfaceRuntimeBuilderContext
-
addRecordComponent
- Specified by:
addRecordComponent
in interfaceRuntimeBuilderContext
-
getTypeParameter
public @Nullable CtTypeParameter getTypeParameter(GenericDeclaration genericDeclaration, String string)- Specified by:
getTypeParameter
in interfaceRuntimeBuilderContext
-