Package spoon.reflect.factory
Class FactoryImpl
java.lang.Object
spoon.reflect.factory.FactoryImpl
- All Implemented Interfaces:
Serializable
,Factory
Implements
Factory
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionFactoryImpl(CoreFactory coreFactory, Environment environment)
Should not be called directly. -
Method Summary
Modifier and TypeMethodDescriptionTheCtAnnotationType
sub-factory.Class()
TheCtClass
sub-factory.Code()
TheCtCodeElement
sub-factory.TheCompilationUnit
sub-factory.TheCtConstructor
sub-factory.Core()
The core factory.<A extends Annotation>
CtAnnotation<A><A extends Annotation>
CtAnnotation<A>createAnnotation(CtTypeReference<A> annotationType)
<T> CtAnnotationFieldAccess<T>
<T> CtAnnotationMethod<T>
<T extends Annotation>
CtAnnotationType<T>createAnnotationType(String qualifiedName)
createAnnotationType(CtPackage owner, String simpleName)
createAnonymous(CtClass<?> target, CtBlock<Void> body)
<T> CtArrayRead<T>
<T> CtArrayTypeReference<T>
createArrayReference(String qualifiedName)
<T> CtArrayTypeReference<T[]>
createArrayReference(CtType<T> type)
createArrayReference(CtTypeReference<?> reference, int n)
<T> CtArrayTypeReference<T[]>
createArrayReference(CtTypeReference<T> reference)
<T> CtArrayTypeReference<T>
<T> CtArrayWrite<T>
<T> CtAssert<T>
<T, A extends T>
CtAssignment<T,A><T> CtBinaryOperator<T>
<T> CtBinaryOperator<T>
createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)
<R> CtBlock<R>
createBodyHolderSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int bodyStart, int bodyEnd, int[] lineSeparatorPositions)
<S> CtCase<S>
<T> CtCatchVariable<T>
<T> CtCatchVariable<T>
createCatchVariable(CtTypeReference<T> type, String name, ModifierKind... modifierKinds)
<T> CtCatchVariableReference<T>
<T> CtCatchVariableReference<T>
createCatchVariableReference(CtCatchVariable<T> catchVariable)
<T> CtClass<T>
createClass(String qualifiedName)
createClass(CtClass<?> declaringClass, String simpleName)
createClass(CtPackage owner, String simpleName)
<T> CtFieldAccess<Class<T>>
createClassAccess(CtTypeReference<T> type)
<T> CtCodeSnippetExpression<T>
<T> CtCodeSnippetExpression<T>
createCodeSnippetExpression(String expression)
createCodeSnippetStatement(String statement)
createComment(String content, CtComment.CommentType type)
<T> CtConditional<T>
<T> CtConstructor<T>
createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
createConstructor(CtClass target, CtConstructor<?> source)
createConstructor(CtClass target, CtMethod<?> source)
<T> CtConstructorCall<T>
<T> CtConstructorCall<T>
createConstructorCall(CtTypeReference<T> type, CtExpression<?>... parameters)
<T extends CtStatement>
CtBlock<?>createCtBlock(T element)
createCtCatch(String nameCatch, Class<? extends Throwable> exception, CtBlock<?> ctBlock)
<T> CtField<T>
createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)
createCtPackageReference(Package originalPackage)
createCtThrow(String thrownExp)
<T> CtTypeReference<T>
createCtTypeReference(Class<?> originalClass)
createDeclarationSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)
<T> CtConstructor<T>
createDefault(CtClass<T> target)
createDo()
createElement(Class<? extends CtElement> klass)
CtEnum<?>
createEnum(String qualifiedName)
CtEnum<?>
createEnum(CtPackage owner, String simpleName)
<T> CtEnumValue<T>
<T> CtExecutableReference<T>
<T, E extends CtExpression<?>>
CtExecutableReferenceExpression<T,E><T> CtField<T>
createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name)
createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)
createField(CtType<?> target, CtField source)
<T> CtFieldRead<T>
<T> CtFieldReference<T>
<T> CtFieldWrite<T>
createIf()
createImport(CtReference reference)
createInlineComment(String content)
<T> CtInterface<T>
createInterface(String qualifiedName)
createInterface(CtPackage owner, String simpleName)
createInterface(CtType owner, String simpleName)
<T> CtIntersectionTypeReference<T>
<T> CtIntersectionTypeReference<T>
createIntersectionTypeReferenceWithBounds(List<CtTypeReference<?>> bounds)
<T> CtConstructor<T>
<T> CtInvocation<T>
<T> CtInvocation<T>
createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)
<T> CtInvocation<T>
createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, CtExpression<?>... arguments)
createJavaDocTag(String content, CtJavaDocTag.TagType type)
createJavaDocTag(String content, CtJavaDocTag.TagType type, String realName)
<T> CtLambda<T>
<T> CtLiteral<T>
<T> CtLiteral<T>
createLiteral(T value)
<T> CtNewArray<T[]>
createLiteralArray(T[] value)
<T> CtLocalVariable<T>
<T> CtLocalVariable<T>
createLocalVariable(CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)
<T> CtLocalVariableReference<T>
<T> CtLocalVariableReference<T>
createLocalVariableReference(CtLocalVariable<T> localVariable)
<T> CtLocalVariableReference<T>
createLocalVariableReference(CtTypeReference<T> type, String name)
<T> CtMethod<T>
createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
createMethod(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)
createMethod(CtType<?> target, CtMethod source, boolean redirectReferences)
createModule(String moduleName)
createModuleReference(CtModule ctModule)
createModuleRequirement(CtModuleReference ctModuleReference)
<T> CtNewArray<T>
<T> CtNewClass<T>
CtNewClass<?>
createNewClass(CtType<?> superClass, CtExpression<?>... parameters)
Creates an anonymous class<T, A extends T>
CtOperatorAssignment<T,A>createPackage(CtPackage parent, String simpleName)
createPackageDeclaration(CtPackageReference packageRef)
createPackageExport(CtPackageReference ctPackageReference)
<T> CtParameter<T>
<T> CtParameter<T>
createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)
<T> CtParameterReference<T>
<T> CtParameterReference<T>
createParameterReference(CtParameter<T> parameter)
createPartialSourcePosition(CompilationUnit compilationUnit)
createProvidedService(CtTypeReference ctTypeReference)
createQuery(Iterable<?> input)
createQuery(Object input)
createQuery(Object[] input)
<T> CtTypeReference<T>
createReference(String qualifiedName)
List<CtTypeReference<?>>
createReferences(List<Class<?>> classes)
<R> CtReturn<R>
<T> CtTypeReference<T>
createSimplyQualifiedReference(String qualifiedName)
createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
<R> CtStatementList
<R> CtStatementList
createStatementList(CtBlock<R> block)
<T> CtSuperAccess<T>
<S> CtSwitch<S>
<T, S> CtSwitchExpression<T,S>
createTextBlock(String value)
<T> CtThisAccess<T>
<T> CtThisAccess<T>
createThisAccess(CtTypeReference<T> type)
<T> CtThisAccess<T>
createThisAccess(CtTypeReference<T> type, boolean isImplicit)
<T> CtTypeAccess<T>
<T> CtTypeAccess<T>
createTypeAccess(CtTypeReference<T> accessedType)
<T> CtTypeAccess<T>
createTypeAccess(CtTypeReference<T> accessedType, boolean isImplicit)
<T> CtTypeAccess<T>
createTypeAccessWithoutCloningReference(CtTypeReference<T> accessedType)
createTypeAdapter(CtFormalTypeDeclarer formalTypeDeclarer)
createTypeMemberWildcardImportReference(CtTypeReference typeReference)
<T> CtTypeReference<T>
<T> CtUnaryOperator<T>
<T> CtUnboundVariableReference<T>
createUnresolvedImport(String reference, boolean isStatic)
createUsedService(CtTypeReference typeReference)
<A, T extends A>
CtAssignment<A,T>createVariableAssignment(CtVariableReference<A> variable, boolean isStatic, CtExpression<T> expression)
<T> CtStatementList
createVariableAssignments(List<? extends CtVariable<T>> variables, List<? extends CtExpression<T>> expressions)
<T> CtVariableRead<T>
<T> CtVariableAccess<T>
createVariableRead(CtVariableReference<T> variable, boolean isStatic)
List<CtExpression<?>>
createVariableReads(List<? extends CtVariable<?>> variables)
<T> CtVariableWrite<T>
<T> CtVariableAccess<T>
createVariableWrite(CtVariableReference<T> variable, boolean isStatic)
createYieldStatement(boolean isImplicit)
Returns a String equal to the given symbol.Enum()
TheCtEnum
sub-factory.Eval()
The evaluators sub-factory.TheCtExecutable
sub-factory.Field()
TheCtField
sub-factory.Gets the Spoon environment that encloses this factory.getModel()
returns the Spoon model that has been built with this factory or one of its subfactoriesTheCtInterface
sub-factory.Method()
TheCtMethod
sub-factory.Module()
The module sub-factoryPackage()
TheCtPackage
sub-factory.Query()
The query sub-factory.Access to templatesType()
TheCtType
sub-factory.
-
Constructor Details
-
FactoryImpl
Should not be called directly. UseLauncher.createFactory()
instead.
-
-
Method Details
-
Annotation
TheCtAnnotationType
sub-factory.- Specified by:
Annotation
in interfaceFactory
-
Class
TheCtClass
sub-factory. -
Code
TheCtCodeElement
sub-factory. -
Constructor
TheCtConstructor
sub-factory.- Specified by:
Constructor
in interfaceFactory
-
Core
The core factory. -
Enum
TheCtEnum
sub-factory. -
getEnvironment
Gets the Spoon environment that encloses this factory.- Specified by:
getEnvironment
in interfaceFactory
-
Executable
TheCtExecutable
sub-factory.- Specified by:
Executable
in interfaceFactory
-
Eval
The evaluators sub-factory. -
Field
TheCtField
sub-factory. -
Interface
TheCtInterface
sub-factory. -
Method
TheCtMethod
sub-factory. -
Package
TheCtPackage
sub-factory. -
CompilationUnit
TheCompilationUnit
sub-factory.- Specified by:
CompilationUnit
in interfaceFactory
-
Type
TheCtType
sub-factory. -
Query
The query sub-factory. -
Module
The module sub-factory -
Templates
Description copied from interface:Factory
Access to templates -
dedup
Returns a String equal to the given symbol. Performs probablilistic deduplication. -
getModel
Description copied from interface:Factory
returns the Spoon model that has been built with this factory or one of its subfactories -
createAnnotation
- Specified by:
createAnnotation
in interfaceFactory
- See Also:
CodeFactory.createAnnotation(CtTypeReference)
-
createVariableAssignment
public <A, T extends A> CtAssignment<A,T> createVariableAssignment(CtVariableReference<A> variable, boolean isStatic, CtExpression<T> expression)- Specified by:
createVariableAssignment
in interfaceFactory
- See Also:
CodeFactory.createVariableAssignment(CtVariableReference,boolean, CtExpression)
-
createStatementList
- Specified by:
createStatementList
in interfaceFactory
- See Also:
CodeFactory.createStatementList(CtBlock)
-
createCtBlock
- Specified by:
createCtBlock
in interfaceFactory
- See Also:
CodeFactory.createCtBlock(CtStatement)
-
createBinaryOperator
public <T> CtBinaryOperator<T> createBinaryOperator(CtExpression<?> left, CtExpression<?> right, BinaryOperatorKind kind)- Specified by:
createBinaryOperator
in interfaceFactory
- See Also:
CodeFactory.createBinaryOperator(CtExpression,CtExpression, BinaryOperatorKind)
-
createCatchVariable
public <T> CtCatchVariable<T> createCatchVariable(CtTypeReference<T> type, String name, ModifierKind... modifierKinds)- Specified by:
createCatchVariable
in interfaceFactory
- See Also:
CodeFactory.createCatchVariable(CtTypeReference,String, ModifierKind[])
-
createCodeSnippetExpression
- Specified by:
createCodeSnippetExpression
in interfaceFactory
- See Also:
CodeFactory.createCodeSnippetExpression(String)
-
createConstructorCall
public <T> CtConstructorCall<T> createConstructorCall(CtTypeReference<T> type, CtExpression<?>... parameters)- Specified by:
createConstructorCall
in interfaceFactory
- See Also:
CodeFactory.createConstructorCall(CtTypeReference,CtExpression[])
-
createClassAccess
- Specified by:
createClassAccess
in interfaceFactory
- See Also:
CodeFactory.createClassAccess(CtTypeReference)
-
createInvocation
public <T> CtInvocation<T> createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, List<CtExpression<?>> arguments)- Specified by:
createInvocation
in interfaceFactory
- See Also:
CodeFactory.createInvocation(CtExpression, CtExecutableReference, List)
-
createInvocation
public <T> CtInvocation<T> createInvocation(CtExpression<?> target, CtExecutableReference<T> executable, CtExpression<?>... arguments)- Specified by:
createInvocation
in interfaceFactory
- See Also:
CodeFactory.createInvocation(CtExpression,CtExecutableReference,CtExpression[])
-
createLiteral
- Specified by:
createLiteral
in interfaceFactory
- See Also:
CodeFactory.createLiteral(Object)
-
createTextBlock
- Specified by:
createTextBlock
in interfaceFactory
- See Also:
CodeFactory.createTextBlock(String)
-
createLocalVariable
public <T> CtLocalVariable<T> createLocalVariable(CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)- Specified by:
createLocalVariable
in interfaceFactory
- See Also:
CodeFactory.createLocalVariable(CtTypeReference,String,CtExpression)
-
createLiteralArray
- Specified by:
createLiteralArray
in interfaceFactory
- See Also:
CodeFactory.createLiteralArray(Object[])
-
createNewClass
Description copied from interface:Factory
Creates an anonymous class- Specified by:
createNewClass
in interfaceFactory
- Parameters:
superClass
- Anonymous class in the new class.parameters
- the arguments of the constructor call.
-
createVariableAssignments
public <T> CtStatementList createVariableAssignments(List<? extends CtVariable<T>> variables, List<? extends CtExpression<T>> expressions)- Specified by:
createVariableAssignments
in interfaceFactory
- See Also:
CodeFactory.createVariableAssignments(List,List)
-
createThisAccess
- Specified by:
createThisAccess
in interfaceFactory
- See Also:
CodeFactory.createThisAccess(CtTypeReference)
-
createThisAccess
- Specified by:
createThisAccess
in interfaceFactory
- See Also:
CodeFactory.createThisAccess(CtTypeReference,boolean)
-
createTypeAccess
- Specified by:
createTypeAccess
in interfaceFactory
- See Also:
CodeFactory.createTypeAccess(CtTypeReference)
-
createTypeAccess
- Specified by:
createTypeAccess
in interfaceFactory
- See Also:
CodeFactory.createTypeAccess(CtTypeReference,boolean)
-
createTypeAccessWithoutCloningReference
public <T> CtTypeAccess<T> createTypeAccessWithoutCloningReference(CtTypeReference<T> accessedType)- Specified by:
createTypeAccessWithoutCloningReference
in interfaceFactory
- See Also:
CodeFactory.createTypeAccessWithoutCloningReference(CtTypeReference)
-
createVariableRead
public <T> CtVariableAccess<T> createVariableRead(CtVariableReference<T> variable, boolean isStatic)- Specified by:
createVariableRead
in interfaceFactory
- See Also:
CodeFactory.createVariableRead(CtVariableReference,boolean)
-
createVariableWrite
public <T> CtVariableAccess<T> createVariableWrite(CtVariableReference<T> variable, boolean isStatic)- Specified by:
createVariableWrite
in interfaceFactory
- See Also:
CodeFactory.createVariableWrite(CtVariableReference,boolean)
-
createCtField
public <T> CtField<T> createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)- Specified by:
createCtField
in interfaceFactory
- See Also:
CodeFactory.createCtField(String,CtTypeReference,String,ModifierKind[])
-
createCatchVariableReference
public <T> CtCatchVariableReference<T> createCatchVariableReference(CtCatchVariable<T> catchVariable)- Specified by:
createCatchVariableReference
in interfaceFactory
- See Also:
CodeFactory.createCatchVariableReference(CtCatchVariable)
-
createLocalVariableReference
public <T> CtLocalVariableReference<T> createLocalVariableReference(CtLocalVariable<T> localVariable)- Specified by:
createLocalVariableReference
in interfaceFactory
- See Also:
CodeFactory.createLocalVariableReference(CtLocalVariable)
-
createLocalVariableReference
public <T> CtLocalVariableReference<T> createLocalVariableReference(CtTypeReference<T> type, String name)- Specified by:
createLocalVariableReference
in interfaceFactory
- See Also:
CodeFactory.createLocalVariableReference(CtTypeReference,String)
-
createCtTypeReference
- Specified by:
createCtTypeReference
in interfaceFactory
- See Also:
CodeFactory.createCtTypeReference(Class)
-
createVariableReads
- Specified by:
createVariableReads
in interfaceFactory
- See Also:
CodeFactory.createVariableReads(List)
-
createCtCatch
public CtCatch createCtCatch(String nameCatch, Class<? extends Throwable> exception, CtBlock<?> ctBlock)- Specified by:
createCtCatch
in interfaceFactory
- See Also:
CodeFactory.createCtCatch(String,Class,CtBlock)
-
createCodeSnippetStatement
- Specified by:
createCodeSnippetStatement
in interfaceFactory
- See Also:
CodeFactory.createCodeSnippetStatement(String)
-
createComment
- Specified by:
createComment
in interfaceFactory
- See Also:
CodeFactory.createComment(String,CtComment.CommentType)
-
createJavaDoc
- Specified by:
createJavaDoc
in interfaceFactory
- See Also:
CoreFactory.createJavaDoc()
-
createInlineComment
- Specified by:
createInlineComment
in interfaceFactory
- See Also:
CodeFactory.createInlineComment(String)
-
createJavaDocTag
- Specified by:
createJavaDocTag
in interfaceFactory
- See Also:
CodeFactory.createJavaDocTag(String,CtJavaDocTag.TagType)
-
createJavaDocTag
- Specified by:
createJavaDocTag
in interfaceFactory
- See Also:
CodeFactory.createJavaDocTag(String,CtJavaDocTag.TagType,String)
-
createJavaDocTag
- Specified by:
createJavaDocTag
in interfaceFactory
- See Also:
CodeFactory#createJavaDocTag()
-
createCtThrow
- Specified by:
createCtThrow
in interfaceFactory
- See Also:
CodeFactory.createCtThrow(String)
-
createCtPackageReference
- Specified by:
createCtPackageReference
in interfaceFactory
- See Also:
CodeFactory.createCtPackageReference(Package)
-
createDefault
- Specified by:
createDefault
in interfaceFactory
- See Also:
ConstructorFactory.createDefault(CtClass)
-
createAnnotation
- Specified by:
createAnnotation
in interfaceFactory
- See Also:
CoreFactory.createAnnotation()
-
createBlock
- Specified by:
createBlock
in interfaceFactory
- See Also:
CoreFactory.createBlock()
-
createReturn
- Specified by:
createReturn
in interfaceFactory
- See Also:
CoreFactory.createReturn()
-
createStatementList
- Specified by:
createStatementList
in interfaceFactory
- See Also:
CoreFactory.createStatementList()
-
createCase
- Specified by:
createCase
in interfaceFactory
- See Also:
CoreFactory.createCase()
-
createSwitch
- Specified by:
createSwitch
in interfaceFactory
- See Also:
CoreFactory.createSwitch()
-
createSwitchExpression
- Specified by:
createSwitchExpression
in interfaceFactory
- See Also:
CoreFactory.createSwitchExpression()
-
createEnum
- Specified by:
createEnum
in interfaceFactory
- See Also:
CoreFactory.createEnum()
-
createAnnotationType
- Specified by:
createAnnotationType
in interfaceFactory
- See Also:
CoreFactory.createAnnotationType()
-
createAssignment
- Specified by:
createAssignment
in interfaceFactory
- See Also:
CoreFactory.createAssignment()
-
createOperatorAssignment
- Specified by:
createOperatorAssignment
in interfaceFactory
- See Also:
CoreFactory.createOperatorAssignment()
-
createExecutableReferenceExpression
public <T, E extends CtExpression<?>> CtExecutableReferenceExpression<T,E> createExecutableReferenceExpression()- Specified by:
createExecutableReferenceExpression
in interfaceFactory
- See Also:
CoreFactory.createExecutableReferenceExpression()
-
createAnnotationFieldAccess
- Specified by:
createAnnotationFieldAccess
in interfaceFactory
- See Also:
CoreFactory.createAnnotationFieldAccess()
-
createArrayRead
- Specified by:
createArrayRead
in interfaceFactory
- See Also:
CoreFactory.createArrayRead()
-
createArrayWrite
- Specified by:
createArrayWrite
in interfaceFactory
- See Also:
CoreFactory.createArrayWrite()
-
createAssert
- Specified by:
createAssert
in interfaceFactory
- See Also:
CoreFactory.createAssert()
-
createBinaryOperator
- Specified by:
createBinaryOperator
in interfaceFactory
- See Also:
CoreFactory.createBinaryOperator()
-
createCatchVariable
- Specified by:
createCatchVariable
in interfaceFactory
- See Also:
CoreFactory.createCatchVariable()
-
createCodeSnippetExpression
- Specified by:
createCodeSnippetExpression
in interfaceFactory
- See Also:
CoreFactory.createCodeSnippetExpression()
-
createConditional
- Specified by:
createConditional
in interfaceFactory
- See Also:
CoreFactory.createConditional()
-
createConstructorCall
- Specified by:
createConstructorCall
in interfaceFactory
- See Also:
CoreFactory.createConstructorCall()
-
createFieldRead
- Specified by:
createFieldRead
in interfaceFactory
- See Also:
CoreFactory.createFieldRead()
-
createFieldWrite
- Specified by:
createFieldWrite
in interfaceFactory
- See Also:
CoreFactory.createFieldWrite()
-
createInvocation
- Specified by:
createInvocation
in interfaceFactory
- See Also:
CoreFactory.createInvocation()
-
createLambda
- Specified by:
createLambda
in interfaceFactory
- See Also:
CoreFactory.createLambda()
-
createLiteral
- Specified by:
createLiteral
in interfaceFactory
- See Also:
CoreFactory.createLiteral()
-
createLocalVariable
- Specified by:
createLocalVariable
in interfaceFactory
- See Also:
CoreFactory.createLocalVariable()
-
createNewArray
- Specified by:
createNewArray
in interfaceFactory
- See Also:
CoreFactory.createNewArray()
-
createNewClass
- Specified by:
createNewClass
in interfaceFactory
- See Also:
CoreFactory.createNewClass()
-
createSuperAccess
- Specified by:
createSuperAccess
in interfaceFactory
- See Also:
CoreFactory.createSuperAccess()
-
createThisAccess
- Specified by:
createThisAccess
in interfaceFactory
- See Also:
CoreFactory.createThisAccess()
-
createTypeAccess
- Specified by:
createTypeAccess
in interfaceFactory
- See Also:
CoreFactory.createTypeAccess()
-
createUnaryOperator
- Specified by:
createUnaryOperator
in interfaceFactory
- See Also:
CoreFactory.createUnaryOperator()
-
createVariableRead
- Specified by:
createVariableRead
in interfaceFactory
- See Also:
CoreFactory.createVariableRead()
-
createVariableWrite
- Specified by:
createVariableWrite
in interfaceFactory
- See Also:
CoreFactory.createVariableWrite()
-
createAnnotationMethod
- Specified by:
createAnnotationMethod
in interfaceFactory
- See Also:
CoreFactory.createAnnotationMethod()
-
createClass
- Specified by:
createClass
in interfaceFactory
- See Also:
CoreFactory.createClass()
-
createConstructor
- Specified by:
createConstructor
in interfaceFactory
- See Also:
CoreFactory.createConstructor()
-
createInvisibleArrayConstructor
- Specified by:
createInvisibleArrayConstructor
in interfaceFactory
- See Also:
()
-
createEnumValue
- Specified by:
createEnumValue
in interfaceFactory
- See Also:
CoreFactory.createEnumValue()
-
createField
- Specified by:
createField
in interfaceFactory
- See Also:
CoreFactory.createField()
-
createInterface
- Specified by:
createInterface
in interfaceFactory
- See Also:
CoreFactory.createInterface()
-
createMethod
- Specified by:
createMethod
in interfaceFactory
- See Also:
CoreFactory.createMethod()
-
createParameter
- Specified by:
createParameter
in interfaceFactory
- See Also:
CoreFactory.createParameter()
-
createArrayTypeReference
- Specified by:
createArrayTypeReference
in interfaceFactory
- See Also:
CoreFactory.createArrayTypeReference()
-
createCatchVariableReference
- Specified by:
createCatchVariableReference
in interfaceFactory
- See Also:
CoreFactory.createCatchVariableReference()
-
createExecutableReference
- Specified by:
createExecutableReference
in interfaceFactory
- See Also:
CoreFactory.createExecutableReference()
-
createFieldReference
- Specified by:
createFieldReference
in interfaceFactory
- See Also:
CoreFactory.createFieldReference()
-
createIntersectionTypeReference
- Specified by:
createIntersectionTypeReference
in interfaceFactory
- See Also:
CoreFactory.createIntersectionTypeReference()
-
createLocalVariableReference
- Specified by:
createLocalVariableReference
in interfaceFactory
- See Also:
CoreFactory.createLocalVariableReference()
-
createParameterReference
- Specified by:
createParameterReference
in interfaceFactory
- See Also:
CoreFactory.createParameterReference()
-
createTypeReference
- Specified by:
createTypeReference
in interfaceFactory
- See Also:
CoreFactory.createTypeReference()
-
createUnboundVariableReference
- Specified by:
createUnboundVariableReference
in interfaceFactory
- See Also:
CoreFactory.createUnboundVariableReference()
-
createBreak
- Specified by:
createBreak
in interfaceFactory
- See Also:
CoreFactory.createBreak()
-
createCatch
- Specified by:
createCatch
in interfaceFactory
- See Also:
CoreFactory.createCatch()
-
createCodeSnippetStatement
- Specified by:
createCodeSnippetStatement
in interfaceFactory
- See Also:
CoreFactory.createCodeSnippetStatement()
-
createComment
- Specified by:
createComment
in interfaceFactory
- See Also:
CoreFactory.createComment()
-
createContinue
- Specified by:
createContinue
in interfaceFactory
- See Also:
CoreFactory.createContinue()
-
createDo
- Specified by:
createDo
in interfaceFactory
- See Also:
CoreFactory.createDo()
-
createFor
- Specified by:
createFor
in interfaceFactory
- See Also:
CoreFactory.createFor()
-
createForEach
- Specified by:
createForEach
in interfaceFactory
- See Also:
CoreFactory.createForEach()
-
createIf
- Specified by:
createIf
in interfaceFactory
- See Also:
CoreFactory.createIf()
-
createSynchronized
- Specified by:
createSynchronized
in interfaceFactory
- See Also:
CoreFactory.createSynchronized()
-
createThrow
- Specified by:
createThrow
in interfaceFactory
- See Also:
CoreFactory.createThrow()
-
createTry
- Specified by:
createTry
in interfaceFactory
- See Also:
CoreFactory.createTry()
-
createTryWithResource
- Specified by:
createTryWithResource
in interfaceFactory
- See Also:
CoreFactory.createTryWithResource()
-
createWhile
- Specified by:
createWhile
in interfaceFactory
- See Also:
CoreFactory.createWhile()
-
createCompilationUnit
- Specified by:
createCompilationUnit
in interfaceFactory
- See Also:
CoreFactory.createCompilationUnit()
-
createSourcePosition
public SourcePosition createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)- Specified by:
createSourcePosition
in interfaceFactory
- See Also:
CoreFactory.createSourcePosition(CompilationUnit,int,int,int[])
-
createBodyHolderSourcePosition
public BodyHolderSourcePosition createBodyHolderSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int bodyStart, int bodyEnd, int[] lineSeparatorPositions)- Specified by:
createBodyHolderSourcePosition
in interfaceFactory
- See Also:
CoreFactory.createBodyHolderSourcePosition(CompilationUnit,int,int,int,int,int,int,int,int,int[])
-
createDeclarationSourcePosition
public DeclarationSourcePosition createDeclarationSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int modifierStart, int modifierEnd, int declarationStart, int declarationEnd, int[] lineSeparatorPositions)- Specified by:
createDeclarationSourcePosition
in interfaceFactory
- See Also:
CoreFactory.createDeclarationSourcePosition(CompilationUnit,int,int,int,int,int,int,int[])
-
createAnonymousExecutable
- Specified by:
createAnonymousExecutable
in interfaceFactory
- See Also:
CoreFactory.createAnonymousExecutable()
-
createPackage
- Specified by:
createPackage
in interfaceFactory
- See Also:
CoreFactory.createPackage()
-
createTypeParameter
- Specified by:
createTypeParameter
in interfaceFactory
- See Also:
CoreFactory.createTypeParameter()
-
createPackageReference
- Specified by:
createPackageReference
in interfaceFactory
- See Also:
CoreFactory.createPackageReference()
-
createTypeParameterReference
- Specified by:
createTypeParameterReference
in interfaceFactory
- See Also:
CoreFactory.createTypeParameterReference()
-
createWildcardReference
- Specified by:
createWildcardReference
in interfaceFactory
- See Also:
CoreFactory.createWildcardReference()
-
createPartialEvaluator
- Specified by:
createPartialEvaluator
in interfaceFactory
- See Also:
EvalFactory.createPartialEvaluator()
-
createParameter
public <T> CtParameter<T> createParameter(CtExecutable<?> parent, CtTypeReference<T> type, String name)- Specified by:
createParameter
in interfaceFactory
- See Also:
ExecutableFactory.createParameter(CtExecutable,CtTypeReference,String)
-
createParameterReference
- Specified by:
createParameterReference
in interfaceFactory
- See Also:
ExecutableFactory.createParameterReference(CtParameter)
-
createAnonymous
- Specified by:
createAnonymous
in interfaceFactory
- See Also:
ExecutableFactory.createAnonymous(CtClass,CtBlock)
-
createArrayReference
- Specified by:
createArrayReference
in interfaceFactory
- See Also:
TypeFactory.createArrayReference(String)
-
createArrayReference
- Specified by:
createArrayReference
in interfaceFactory
- See Also:
TypeFactory.createArrayReference(CtType)
-
createArrayReference
- Specified by:
createArrayReference
in interfaceFactory
- See Also:
TypeFactory.createArrayReference(CtTypeReference)
-
createIntersectionTypeReferenceWithBounds
public <T> CtIntersectionTypeReference<T> createIntersectionTypeReferenceWithBounds(List<CtTypeReference<?>> bounds)- Specified by:
createIntersectionTypeReferenceWithBounds
in interfaceFactory
- See Also:
TypeFactory.createIntersectionTypeReferenceWithBounds(List)
-
createTypeAdapter
- Specified by:
createTypeAdapter
in interfaceFactory
- See Also:
TypeFactory.createTypeAdapter(CtFormalTypeDeclarer)
-
createReferences
- Specified by:
createReferences
in interfaceFactory
- See Also:
TypeFactory.createReferences(List)
-
createArrayReference
- Specified by:
createArrayReference
in interfaceFactory
- See Also:
TypeFactory.createArrayReference(CtTypeReference,int)
-
createTypeParameterReference
- Specified by:
createTypeParameterReference
in interfaceFactory
- See Also:
TypeFactory.createTypeParameterReference(String)
-
createQuery
- Specified by:
createQuery
in interfaceFactory
- See Also:
QueryFactory.createQuery()
-
createQuery
- Specified by:
createQuery
in interfaceFactory
- See Also:
QueryFactory.createQuery(Object)
-
createQuery
- Specified by:
createQuery
in interfaceFactory
- See Also:
QueryFactory.createQuery(Object...)
-
createQuery
- Specified by:
createQuery
in interfaceFactory
- See Also:
QueryFactory.createQuery(Iterable)
-
createAnnotationType
- Specified by:
createAnnotationType
in interfaceFactory
- See Also:
AnnotationFactory.create(String)
-
createAnnotationType
- Specified by:
createAnnotationType
in interfaceFactory
- See Also:
AnnotationFactory.create(CtPackage, String)
-
createClass
- Specified by:
createClass
in interfaceFactory
- See Also:
ClassFactory.create(String)
-
createClass
- Specified by:
createClass
in interfaceFactory
- See Also:
ClassFactory.create(CtClass, String)
-
createClass
- Specified by:
createClass
in interfaceFactory
- See Also:
ClassFactory.create(CtPackage, String)
-
createConstructor
- Specified by:
createConstructor
in interfaceFactory
- See Also:
ConstructorFactory.create(CtClass, CtConstructor)
-
createConstructor
- Specified by:
createConstructor
in interfaceFactory
- See Also:
ConstructorFactory.create(CtClass, CtMethod)
-
createConstructor
public CtConstructor createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)- Specified by:
createConstructor
in interfaceFactory
- See Also:
ConstructorFactory.create(CtClass, Set, List, Set)
-
createConstructor
public CtConstructor createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)- Specified by:
createConstructor
in interfaceFactory
- See Also:
ConstructorFactory.create(CtClass, Set, List, Set, CtBlock)
-
createEnum
- Specified by:
createEnum
in interfaceFactory
- See Also:
EnumFactory.create(String)
-
createEnum
- Specified by:
createEnum
in interfaceFactory
- See Also:
EnumFactory.create(CtPackage, String)
-
createField
public CtField createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name)- Specified by:
createField
in interfaceFactory
- See Also:
FieldFactory.create(CtType, Set, CtTypeReference, String)
-
createField
public CtField createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)- Specified by:
createField
in interfaceFactory
- See Also:
FieldFactory.create(CtType, Set, CtTypeReference, String, CtExpression)
-
createField
- Specified by:
createField
in interfaceFactory
- See Also:
FieldFactory.create(CtType, CtField)
-
createInterface
- Specified by:
createInterface
in interfaceFactory
- See Also:
InterfaceFactory.create(CtPackage, String)
-
createInterface
- Specified by:
createInterface
in interfaceFactory
- See Also:
InterfaceFactory.create(CtType, String)
-
createInterface
- Specified by:
createInterface
in interfaceFactory
- See Also:
InterfaceFactory.create(String)
-
createMethod
public CtMethod createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)- Specified by:
createMethod
in interfaceFactory
- See Also:
MethodFactory.create(CtClass, Set, CtTypeReference, String, List, Set, CtBlock)
-
createMethod
- Specified by:
createMethod
in interfaceFactory
- See Also:
MethodFactory.create(CtType, CtMethod, boolean)
-
createMethod
public CtMethod createMethod(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes)- Specified by:
createMethod
in interfaceFactory
- See Also:
MethodFactory.create(CtType, Set, CtTypeReference, String, List, Set)
-
createPackage
- Specified by:
createPackage
in interfaceFactory
- See Also:
PackageFactory.create(CtPackage, String)
-
createElement
- Specified by:
createElement
in interfaceFactory
- See Also:
CoreFactory.create(Class)
-
createImport
- Specified by:
createImport
in interfaceFactory
- See Also:
TypeFactory.createImport(CtReference)
-
createUnresolvedImport
- Specified by:
createUnresolvedImport
in interfaceFactory
- See Also:
TypeFactory.createUnresolvedImport(String,boolean)
-
createTypeMemberWildcardImportReference
public CtTypeMemberWildcardImportReference createTypeMemberWildcardImportReference(CtTypeReference typeReference)- Specified by:
createTypeMemberWildcardImportReference
in interfaceFactory
- See Also:
TypeFactory.createTypeMemberWildcardImportReference(CtTypeReference)
-
createPackageExport
- Specified by:
createPackageExport
in interfaceFactory
- See Also:
ModuleFactory.createPackageExport(CtPackageReference)
-
createProvidedService
- Specified by:
createProvidedService
in interfaceFactory
- See Also:
ModuleFactory.createProvidedService(CtTypeReference)
-
createModuleRequirement
- Specified by:
createModuleRequirement
in interfaceFactory
- See Also:
ModuleFactory.createModuleRequirement(CtModuleReference)
-
createModule
- Specified by:
createModule
in interfaceFactory
- See Also:
ModuleFactory.getOrCreate(String)
-
createModuleReference
- Specified by:
createModuleReference
in interfaceFactory
- See Also:
ModuleFactory.createReference(CtModule)
-
createUsedService
- Specified by:
createUsedService
in interfaceFactory
- See Also:
ModuleFactory.createUsedService(CtTypeReference)
-
createPartialSourcePosition
- Specified by:
createPartialSourcePosition
in interfaceFactory
- See Also:
CoreFactory.createPartialSourcePosition(CompilationUnit)
-
createPackageDeclaration
- Specified by:
createPackageDeclaration
in interfaceFactory
- See Also:
PackageFactory.createPackageDeclaration(CtPackageReference)
-
createReference
- Specified by:
createReference
in interfaceFactory
- See Also:
TypeFactory.createReference(String)
-
createSimplyQualifiedReference
- Specified by:
createSimplyQualifiedReference
in interfaceFactory
- See Also:
TypeFactory.createSimplyQualifiedReference(String)
-
createYieldStatement
- Specified by:
createYieldStatement
in interfaceFactory
- See Also:
CoreFactory.createYieldStatement()
-
createTextBlock
- Specified by:
createTextBlock
in interfaceFactory
- See Also:
CoreFactory.createTextBlock()
-
createRecord
- Specified by:
createRecord
in interfaceFactory
- Returns:
- a CtRecord
- See Also:
CoreFactory.createRecord()
-
createRecordComponent
- Specified by:
createRecordComponent
in interfaceFactory
- Returns:
- a CtRecordComponent.
- See Also:
CoreFactory.createRecordComponent()
-