Package org.opencypher.tools.grammar
Class CypherGeneratorFactory
- java.lang.Object
-
- org.opencypher.generator.GeneratorFactory<org.opencypher.tools.grammar.CypherGeneratorFactory.State>
-
- org.opencypher.tools.grammar.CypherGeneratorFactory
-
public class CypherGeneratorFactory extends GeneratorFactory<org.opencypher.tools.grammar.CypherGeneratorFactory.State> implements Supplier<Generator>
Generates sample strings from a language.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencypher.generator.GeneratorFactory
GeneratorFactory.Replacement
-
-
Constructor Summary
Constructors Constructor Description CypherGeneratorFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidFunctionName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)Generatorget()voidIdentifierPart(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)voidIdentifierStart(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)voidLabelName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)static voidmain(String... args)protected org.opencypher.tools.grammar.CypherGeneratorFactory.StatenewContext()Creates a new context object for use by the generator.voidPropertyKeyName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)voidRelTypeName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)voidVariable(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)-
Methods inherited from class org.opencypher.generator.GeneratorFactory
choices, generator, generator, generatorResource, replacement
-
-
-
-
Method Detail
-
newContext
protected org.opencypher.tools.grammar.CypherGeneratorFactory.State newContext()
Description copied from class:GeneratorFactoryCreates a new context object for use by the generator. The context object may implementScopeListener- TODO: is this a good design? TODO: should scope notification be part of tree building or string generation? -- An idea: we could make the Scope notion create a nested context object, so new context for new scope...- Specified by:
newContextin classGeneratorFactory<org.opencypher.tools.grammar.CypherGeneratorFactory.State>- Returns:
- a new context object for a generator session.
-
Variable
public void Variable(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)
-
LabelName
public void LabelName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)
-
RelTypeName
public void RelTypeName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)
-
FunctionName
public void FunctionName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)
-
PropertyKeyName
public void PropertyKeyName(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)
-
IdentifierStart
public void IdentifierStart(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)
-
IdentifierPart
public void IdentifierPart(ProductionReplacement.Context<org.opencypher.tools.grammar.CypherGeneratorFactory.State> context)
-
-