public abstract class BlockTemplate extends AbstractTemplate<CtBlock<?>>
Constructor and Description |
---|
BlockTemplate()
Creates a new block template parameter.
|
Modifier and Type | Method and Description |
---|---|
CtBlock<?> |
apply(CtType<?> targetType)
Returns the code which results from applying the template.
|
abstract void |
block()
This method must be implemented to define the template block.
|
static CtBlock<?> |
getBlock(CtClass<? extends BlockTemplate> p)
Returns the block.
|
java.lang.Void |
S() |
addGeneratedBy, getFactory, isAddGeneratedBy, isValid, isWellFormed, withPartialEvaluation
public static CtBlock<?> getBlock(CtClass<? extends BlockTemplate> p)
public CtBlock<?> apply(CtType<?> targetType)
Template
targetType
- the type that defines the context of the substitution.
It may be null for templates with no context.public java.lang.Void S()
public abstract void block() throws java.lang.Throwable
java.lang.Throwable
Copyright © 2007–2021 Inria. All rights reserved.