当前位置: 首页>>代码示例>>Java>>正文


Java MetaTypes类代码示例

本文整理汇总了Java中com.workday.meta.MetaTypes的典型用法代码示例。如果您正苦于以下问题:Java MetaTypes类的具体用法?Java MetaTypes怎么用?Java MetaTypes使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MetaTypes类属于com.workday.meta包,在下文中一共展示了MetaTypes类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: XmlElementParserGenerator

import com.workday.meta.MetaTypes; //导入依赖的package包/类
XmlElementParserGenerator(ProcessingEnvironment processingEnv, TypeElement classElement) {

        this.processingEnv = processingEnv;
        this.classElement = classElement;
        MetaTypes metaTypes = new MetaTypes(processingEnv);
        AttributesAndElements attributesAndElements =
                new AttributesAndElements(processingEnv, classElement);
        parseAttributesMethodWriter =
                new ParseAttributesMethodWriter(attributesAndElements, processingEnv, metaTypes);
        parseChildrenMethodWriter =
                new ParseChildrenMethodWriter(attributesAndElements,
                                              processingEnv,
                                              metaTypes,
                                              classElement);

    }
 
开发者ID:Workday,项目名称:autoparse-xml,代码行数:17,代码来源:XmlElementParserGenerator.java

示例2: ParseChildrenMethodWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public ParseChildrenMethodWriter(AttributesAndElements attributesAndElements,
                                 ProcessingEnvironment processingEnv,
                                 MetaTypes metaTypes,
                                 TypeElement classElement) {
    this.attributesAndElements = attributesAndElements;
    this.processingEnv = processingEnv;
    this.metaTypes = metaTypes;
    this.classElement = classElement;
    initializers = new Initializers(metaTypes);
}
 
开发者ID:Workday,项目名称:autoparse-xml,代码行数:11,代码来源:ParseChildrenMethodWriter.java

示例3: ParseAttributesMethodWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public ParseAttributesMethodWriter(AttributesAndElements attributesAndElements,
                                   ProcessingEnvironment processingEnv,
                                   MetaTypes metaTypes) {
    this.attributesAndElements = attributesAndElements;
    this.processingEnv = processingEnv;
    this.metaTypes = metaTypes;
}
 
开发者ID:Workday,项目名称:autoparse-xml,代码行数:8,代码来源:ParseAttributesMethodWriter.java

示例4: JsonObjectParserGenerator

import com.workday.meta.MetaTypes; //导入依赖的package包/类
/**
 * @param classElement The class element for which we are generating the parser.
 * @param classNameToParserNameMap All known classes that can be parsed, along with their parsers for use when
 * attempting to find the right parser for a field or setter that takes a concrete type.
 */
public JsonObjectParserGenerator(ProcessingEnvironment processingEnv,
                                 TypeElement classElement,
                                 Map<String, String> classNameToParserNameMap) {
    this.processingEnv = processingEnv;
    metaTypes = new MetaTypes(processingEnv);
    initializers = new Initializers(metaTypes);
    this.classElement = classElement;
    this.classNameToParserNameMap = classNameToParserNameMap;
}
 
开发者ID:Workday,项目名称:autoparse-json,代码行数:15,代码来源:JsonObjectParserGenerator.java

示例5: ValueAssignerFactory

import com.workday.meta.MetaTypes; //导入依赖的package包/类
ValueAssignerFactory(ProcessingEnvironment processingEnv,
                     Map<String, String> classNameToParserNameMap,
                     JavaWriter writer,
                     PostCreateChildBlockWriter postCreateChildBlockWriter) {
    this.processingEnv = processingEnv;
    this.writer = writer;
    this.postCreateChildBlockWriter = postCreateChildBlockWriter;
    typeUtils = processingEnv.getTypeUtils();
    this.classNameToParserNameMap = classNameToParserNameMap;

    metaTypes = new MetaTypes(processingEnv);
    initializers = new Initializers(metaTypes);
}
 
开发者ID:Workday,项目名称:autoparse-json,代码行数:14,代码来源:ValueAssignerFactory.java

示例6: InstanceUpdaterTableGenerator

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public InstanceUpdaterTableGenerator(ProcessingEnvironment processingEnv,
                                     Map<String, String> classNameToParserNameMap,
                                     PackageElement packageElement) {
    this.processingEnv = processingEnv;
    this.classNameToParserNameMap = classNameToParserNameMap;
    this.packageElement = packageElement;
    this.metaTypes = new MetaTypes(processingEnv);
}
 
开发者ID:Workday,项目名称:autoparse-json,代码行数:9,代码来源:InstanceUpdaterTableGenerator.java

示例7: ObjectValueAssigner

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public ObjectValueAssigner(ProcessingEnvironment processingEnv, Info info) {
    this.metaTypes = new MetaTypes(processingEnv);

    this.objectType = info.objectType;
    this.objectTypeString = objectType.toString();
    this.objectTypeErasure = processingEnv.getTypeUtils().erasure(objectType).toString();

    this.assignmentPattern = info.assignmentPattern;
    this.parserInstance = info.parserInstance;
    this.convertJsonTypes = info.convertJsonTypes;

    this.postCreateChildBlockWriter = info.postCreateChildBlockWriter;
}
 
开发者ID:Workday,项目名称:autoparse-json,代码行数:14,代码来源:ObjectValueAssigner.java

示例8: ParcelerGenerator

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public ParcelerGenerator(ProcessingEnvironment processingEnv, TypeElement elementToParcel) {
    this.processingEnv = processingEnv;
    metaTypes = new MetaTypes(processingEnv);

    this.elementToParcel = elementToParcel;
    elementQualifiedName = elementToParcel.getQualifiedName().toString();
    parcelerName = MetaTypeNames.constructTypeName(elementToParcel, Names.PARCELER_SUFFIX);
    ParceledElementExtractor parceledElementExtractor =
            new ParceledElementExtractor(processingEnv);
    this.parceledFields = parceledElementExtractor.extractParceledFields(elementToParcel);
    this.postCreateChildMethods =
            parceledElementExtractor.extractPostCreateChildMethods(elementToParcel);
    saveStatementWriters = createSaveStatementWriterList();
}
 
开发者ID:Workday,项目名称:postman,代码行数:15,代码来源:ParcelerGenerator.java

示例9: AttributesAndElements

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public AttributesAndElements(ProcessingEnvironment processingEnv, TypeElement classElement) {
    this.processingEnv = processingEnv;
    metaTypes = new MetaTypes(processingEnv);
    this.classElement = classElement;
    findAttributesAndElements();
}
 
开发者ID:Workday,项目名称:autoparse-xml,代码行数:7,代码来源:AttributesAndElements.java

示例10: BoxableSaveStatementWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public BoxableSaveStatementWriter(MetaTypes metaTypes) {
    this.metaTypes = metaTypes;
}
 
开发者ID:Workday,项目名称:postman,代码行数:4,代码来源:BoxableSaveStatementWriter.java

示例11: SerializableSaveStatementWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
public SerializableSaveStatementWriter(MetaTypes metaTypes) {
    this.metaTypes = metaTypes;
}
 
开发者ID:Workday,项目名称:postman,代码行数:4,代码来源:SerializableSaveStatementWriter.java

示例12: EnumSaveStatementWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
EnumSaveStatementWriter(MetaTypes metaTypes) {
    this.metaTypes = metaTypes;
}
 
开发者ID:Workday,项目名称:postman,代码行数:4,代码来源:EnumSaveStatementWriter.java

示例13: CharSequenceSaveStatementWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
CharSequenceSaveStatementWriter(MetaTypes metaTypes) {
    this.metaTypes = metaTypes;
}
 
开发者ID:Workday,项目名称:postman,代码行数:4,代码来源:CharSequenceSaveStatementWriter.java

示例14: ParcelableSaveStatementWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
ParcelableSaveStatementWriter(MetaTypes metaTypes) {
    this.metaTypes = metaTypes;
}
 
开发者ID:Workday,项目名称:postman,代码行数:4,代码来源:ParcelableSaveStatementWriter.java

示例15: StringSaveStatementWriter

import com.workday.meta.MetaTypes; //导入依赖的package包/类
StringSaveStatementWriter(MetaTypes metaTypes) {
    this.metaTypes = metaTypes;
}
 
开发者ID:Workday,项目名称:postman,代码行数:4,代码来源:StringSaveStatementWriter.java


注:本文中的com.workday.meta.MetaTypes类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。