Uses of Interface
spoon.reflect.code.CtBlock
Packages that use 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
Methods in spoon.reflect.code that return CtBlockModifier 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(finallypart).Methods in spoon.reflect.code with parameters of type CtBlockModifier and TypeMethodDescription<T extends CtSynchronized>
TSets the synchronized block.<T extends CtTry>
TCtTry.setFinalizer(CtBlock<?> finalizer) Sets the finalizer block of thistry(finallypart). -
Uses of CtBlock in spoon.reflect.declaration
Methods in spoon.reflect.declaration that return CtBlock -
Uses of CtBlock in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtBlockModifier 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.Methods in spoon.reflect.factory with parameters of type CtBlockModifier 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> CtStatementListCodeFactory.createStatementList(CtBlock<R> block) Creates a new statement list from an existing block.<R> CtStatementListFactory.createStatementList(CtBlock<R> block) <R> CtStatementListFactoryImpl.createStatementList(CtBlock<R> block) -
Uses of CtBlock in spoon.reflect.visitor
Methods in spoon.reflect.visitor with parameters of type CtBlockModifier and TypeMethodDescription<R> voidCtAbstractVisitor.visitCtBlock(CtBlock<R> block) <R> voidCtBiScannerDefault.visitCtBlock(CtBlock<R> block) <R> voidCtInheritanceScanner.visitCtBlock(CtBlock<R> e) <R> voidCtScanner.visitCtBlock(CtBlock<R> block) <R> voidCtVisitor.visitCtBlock(CtBlock<R> block) Visits a block of code.<R> voidDefaultJavaPrettyPrinter.visitCtBlock(CtBlock<R> block) -
Uses of CtBlock in spoon.support
Methods in spoon.support that return CtBlock -
Uses of CtBlock in spoon.support.compiler.jdt
Methods in spoon.support.compiler.jdt with parameters of type CtBlock -
Uses of CtBlock in spoon.support.reflect.code
Classes in spoon.support.reflect.code that implement CtBlockMethods in spoon.support.reflect.code that return CtBlockModifier and TypeMethodDescriptionCtBlockImpl.clone()CtBlock<?>CtSynchronizedImpl.getBlock()CtBlock<?>CtCatchImpl.getBody()CtLambdaImpl.getBody()CtBlock<?>CtTryImpl.getBody()CtBlock<?>CtTryImpl.getFinalizer()Methods in spoon.support.reflect.code with parameters of type CtBlockModifier and TypeMethodDescription<T extends CtSynchronized>
T<T extends CtTry>
TCtTryImpl.setFinalizer(CtBlock<?> finalizer) -
Uses of CtBlock in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration that return CtBlock -
Uses of CtBlock in spoon.support.reflect.eval
Methods in spoon.support.reflect.eval with parameters of type CtBlockModifier and TypeMethodDescription<R> voidVisitorPartialEvaluator.visitCtBlock(CtBlock<R> block) -
Uses of CtBlock in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtBlock -
Uses of CtBlock in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with parameters of type CtBlock -
Uses of CtBlock in spoon.template
Methods in spoon.template that return CtBlockModifier 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.