Uses of Interface
spoon.reflect.code.CtBlock
Package
Description
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
This package defines a framework for well-typed pure-Java templates.
-
Uses of CtBlock in spoon.reflect.code
Modifier and TypeMethodDescriptionCtBlock.clone()
CtBlock<?>
CtSynchronized.getBlock()
Gets the synchronized block.CtBlock<?>
CtCatch.getBody()
Gets the catch's body.CtBlock<?>
CtTry.getBody()
Gets the try body.CtBlock<?>
CtTry.getFinalizer()
Gets the finalizer block of thistry
(finally
part).Modifier and TypeMethodDescription<T extends CtSynchronized>
TSets the synchronized block.<T extends CtTry>
TCtTry.setFinalizer(CtBlock<?> finalizer)
Sets the finalizer block of thistry
(finally
part). -
Uses of CtBlock in spoon.reflect.declaration
-
Uses of CtBlock in spoon.reflect.factory
Modifier and TypeMethodDescription<R> CtBlock<R>
CoreFactory.createBlock()
Creates a block.<R> CtBlock<R>
Factory.createBlock()
<R> CtBlock<R>
FactoryImpl.createBlock()
<T extends CtStatement>
CtBlock<?>CodeFactory.createCtBlock(T element)
Creates a block.<T extends CtStatement>
CtBlock<?>Factory.createCtBlock(T element)
<T extends CtStatement>
CtBlock<?>FactoryImpl.createCtBlock(T element)
<T extends CtStatement>
CtBlock<?>CodeFactory.getOrCreateCtBlock(T element)
Accepts instance of CtStatement or CtBlock.Modifier and TypeMethodDescription<T> CtConstructor<T>
ConstructorFactory.create(CtClass<T> target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock<T> body)
Creates a constructor.<R, B extends R>
CtMethod<R>MethodFactory.create(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference<R> returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock<B> body)
Creates a method.ExecutableFactory.createAnonymous(CtClass<?> target, CtBlock<Void> body)
Creates an anonymous executable (initializer block) in a target class).Factory.createAnonymous(CtClass<?> target, CtBlock<Void> body)
FactoryImpl.createAnonymous(CtClass<?> target, CtBlock<Void> body)
Factory.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
FactoryImpl.createConstructor(CtClass target, Set<ModifierKind> modifiers, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
CodeFactory.createCtCatch(String nameCatch, Class<? extends Throwable> exception, CtBlock<?> ctBlock)
Creates a catch element.Factory.createCtCatch(String nameCatch, Class<? extends Throwable> exception, CtBlock<?> ctBlock)
FactoryImpl.createCtCatch(String nameCatch, Class<? extends Throwable> exception, CtBlock<?> ctBlock)
Factory.createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
FactoryImpl.createMethod(CtClass<?> target, Set<ModifierKind> modifiers, CtTypeReference returnType, String name, List<CtParameter<?>> parameters, Set<CtTypeReference<? extends Throwable>> thrownTypes, CtBlock body)
<R> CtStatementList
CodeFactory.createStatementList(CtBlock<R> block)
Creates a new statement list from an existing block.<R> CtStatementList
Factory.createStatementList(CtBlock<R> block)
<R> CtStatementList
FactoryImpl.createStatementList(CtBlock<R> block)
-
Uses of CtBlock in spoon.reflect.visitor
Modifier and TypeMethodDescription<R> void
CtAbstractVisitor.visitCtBlock(CtBlock<R> block)
<R> void
CtBiScannerDefault.visitCtBlock(CtBlock<R> block)
<R> void
CtInheritanceScanner.visitCtBlock(CtBlock<R> e)
<R> void
CtScanner.visitCtBlock(CtBlock<R> block)
<R> void
CtVisitor.visitCtBlock(CtBlock<R> block)
Visits a block of code.<R> void
DefaultJavaPrettyPrinter.visitCtBlock(CtBlock<R> block)
-
Uses of CtBlock in spoon.support
-
Uses of CtBlock in spoon.support.compiler.jdt
-
Uses of CtBlock in spoon.support.reflect.code
Modifier and TypeMethodDescriptionCtBlockImpl.clone()
CtBlock<?>
CtSynchronizedImpl.getBlock()
CtBlock<?>
CtCatchImpl.getBody()
CtLambdaImpl.getBody()
CtBlock<?>
CtTryImpl.getBody()
CtBlock<?>
CtTryImpl.getFinalizer()
Modifier and TypeMethodDescription<T extends CtSynchronized>
T<T extends CtTry>
TCtTryImpl.setFinalizer(CtBlock<?> finalizer)
-
Uses of CtBlock in spoon.support.reflect.declaration
-
Uses of CtBlock in spoon.support.reflect.eval
Modifier and TypeMethodDescription<R> void
VisitorPartialEvaluator.visitCtBlock(CtBlock<R> block)
-
Uses of CtBlock in spoon.support.visitor.clone
-
Uses of CtBlock in spoon.support.visitor.replace
-
Uses of CtBlock in spoon.template
Modifier and TypeMethodDescriptionCtBlock<?>
static CtBlock<?>
BlockTemplate.getBlock(CtClass<? extends BlockTemplate> p)
Returns the block.static CtBlock<?>
Substitution.substituteMethodBody(CtClass<?> targetClass, Template<?> template, String executableName, CtTypeReference<?>... parameterTypes)
Gets a body from a template executable with all the template parameters substituted.