public class RuleGenerateWith extends Rule
Modifier and Type | Field and Description |
---|---|
static Set<String> |
ALL_PROPERTIES |
Constructor and Description |
---|
RuleGenerateWith(Class<? extends Generator> generatorClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
contentDependsOnTypes()
Returns whether the output of the Generator being managed by this rule depends on access to the
global set of types to be able to run accurately.
|
boolean |
equals(Object obj) |
static Set<String> |
getAccessedPropertyNames(Class<? extends Generator> generatorClass)
Returns a Set of the names of properties that will be accessed by the given Generator.
|
protected Generator |
getGenerator() |
String |
getName()
Returns the name of the class of Generator being managed here.
|
int |
hashCode() |
RebindResult |
realize(TreeLogger logger,
StandardGeneratorContext context,
String typeName) |
String |
toString() |
getFallbackEvaluationCost, getRootCondition, isApplicable
public static Set<String> getAccessedPropertyNames(Class<? extends Generator> generatorClass)
public boolean contentDependsOnTypes()
public String getName()
public RebindResult realize(TreeLogger logger, StandardGeneratorContext context, String typeName) throws UnableToCompleteException
realize
in class Rule
UnableToCompleteException
protected Generator getGenerator()
Copyright © 2018. All rights reserved.