本文整理了Java中com.asakusafw.utils.java.model.syntax.QualifiedName.toNameString
方法的一些代码示例,展示了QualifiedName.toNameString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QualifiedName.toNameString
方法的具体详情如下:
包路径:com.asakusafw.utils.java.model.syntax.QualifiedName
类名称:QualifiedName
方法名:toNameString
暂无
代码示例来源:origin: asakusafw/asakusafw
private Name generateSupport(EmitContext context, ModelDeclaration model) throws IOException {
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_STREAM,
"{0}StreamSupport"); //$NON-NLS-1$
LOG.debug("Generating stream support for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
Generator.emit(next, model);
LOG.debug("Generated stream support for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private Name generateSupport(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_JDBC,
"{0}JdbcSupport"); //$NON-NLS-1$
LOG.debug("Generating JDBC support for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
SupportGenerator.emit(next, model);
LOG.debug("Generated JDBC support for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_STREAM,
"{0}LineFormat"); //$NON-NLS-1$
LOG.debug("Generating line format for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
FormatGenerator.emit(next, model, model.getTrait(LineFormatTrait.class).getConfiguration());
LOG.debug("Generated line format for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private static Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
CsvTextTrait trait = CsvTextTrait.get(model);
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
PACKAGE_SEGMENT,
"{0}CsvTextFormat"); //$NON-NLS-1$
LOG.debug("Generating CSV format for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
FormatGenerator.emit(next, model, trait);
LOG.debug("Generated CSV format for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private static Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
TabularTextTrait trait = TabularTextTrait.get(model);
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
PACKAGE_SEGMENT,
"{0}TabularTextFormat"); //$NON-NLS-1$
LOG.debug("Generating tabular text format for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
FormatGenerator.emit(next, model, trait);
LOG.debug("Generated tabular text format for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_STREAM,
"{0}TsvFormat"); //$NON-NLS-1$
LOG.debug("Generating TSV format for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
FormatGenerator.emit(next, model, model.getTrait(TsvFormatTrait.class).getConfiguration());
LOG.debug("Generated TSV format for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_STREAM,
"{0}SequenceFileFormat"); //$NON-NLS-1$
LOG.debug("Generating SequenceFile format for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
FormatGenerator.emit(next, model, model.getTrait(SequenceFileFormatTrait.class).getConfiguration());
LOG.debug("Generated SequenceFile format for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private Name generateSupport(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_STREAM,
"{0}CsvSupport"); //$NON-NLS-1$
LOG.debug("Generating CSV support for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
SupportGenerator.emit(next, model, model.getTrait(CsvSupportTrait.class).getConfiguration());
LOG.debug("Generated CSV support for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_STREAM,
"{0}CsvFormat"); //$NON-NLS-1$
LOG.debug("Generating CSV format for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
FormatGenerator.emit(next, model, model.getTrait(CsvFormatTrait.class).getConfiguration());
LOG.debug("Generated CSV format for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
private static Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException {
assert context != null;
assert model != null;
JsonFormatTrait trait = JsonFormatTrait.get(model);
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
PACKAGE_SEGMENT,
"{0}JsonFormat"); //$NON-NLS-1$
LOG.debug("Generating JSON format for {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString());
JsonStreamFormatGenerator generator = new JsonStreamFormatGenerator(
next, model,
trait.getStreamSettings(),
trait.getFormatSettings(),
trait.getPropertySettings());
generator.emit();
LOG.debug("Generated JSON format for {}: {}", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
return next.getQualifiedTypeName();
}
代码示例来源:origin: asakusafw/asakusafw
.newObject(Models.toLiteral(f, MessageFormat.format(
"{0} does not support fragmentation.", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString())))
.toThrowStatement())));
代码示例来源:origin: asakusafw/asakusafw
.newObject(Models.toLiteral(f, MessageFormat.format(
Messages.getString("CsvFormatEmitter.messageNotSupportFragmentation"), //$NON-NLS-1$
context.getQualifiedTypeName().toNameString())))
.toThrowStatement())));
代码示例来源:origin: asakusafw/asakusafw
.newObject(Models.toLiteral(f, MessageFormat.format(
"{0} does not support fragmentation.", //$NON-NLS-1$
context.getQualifiedTypeName().toNameString())))
.toThrowStatement())));
内容来源于网络,如有侵权,请联系作者删除!