本文整理汇总了Java中com.sun.tools.internal.xjc.outline.FieldOutline类的典型用法代码示例。如果您正苦于以下问题:Java FieldOutline类的具体用法?Java FieldOutline怎么用?Java FieldOutline使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FieldOutline类属于com.sun.tools.internal.xjc.outline包,在下文中一共展示了FieldOutline类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: IsSetField
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
protected IsSetField( ClassOutlineImpl outline, CPropertyInfo prop,
FieldOutline core, boolean unsetMethod, boolean issetMethod ) {
super(outline,prop);
this.core = core;
this.generateIsSetMethod = issetMethod;
this.generateUnSetMethod = unsetMethod;
generate(outline,prop);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:IsSetField.java
示例2: generate
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public FieldOutline generate(ClassOutlineImpl context, CPropertyInfo prop) {
if (dummy) {
return new DummyListField(context, prop, coreList);
}
if (content) {
return new ContentListField(context, prop, coreList);
}
return new UntypedListField(context, prop, coreList);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:UntypedListFieldRenderer.java
示例3: generateFieldDecl
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
/**
* Determines the FieldRenderer used for the given FieldUse,
* then generates the field declaration and accessor methods.
*
* The <code>fields</code> map will be updated with the newly
* created FieldRenderer.
*/
private FieldOutline generateFieldDecl(ClassOutlineImpl cc, CPropertyInfo prop) {
FieldRenderer fr = prop.realization;
if (fr == null) // none is specified. use the default factory
{
fr = model.options.getFieldRendererFactory().getDefault();
}
FieldOutline field = fr.generate(cc, prop);
fields.put(prop, field);
return field;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:BeanGenerator.java
示例4: dump
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
private void dump( ClassOutline ci ) throws IOException {
JDefinedClass cls = ci.implClass;
StringBuilder buf = new StringBuilder();
buf.append("interface ");
buf.append(cls.name());
boolean first=true;
Iterator itr = cls._implements();
while(itr.hasNext()) {
if(first) {
buf.append(" extends ");
first=false;
} else {
buf.append(", ");
}
buf.append( printName((JClass)itr.next()) );
}
buf.append(" {");
println(buf.toString());
indent++;
// dump the field
for( FieldOutline fo : ci.getDeclaredFields() ) {
String type = printName(fo.getRawType());
println(type+' '+fo.getPropertyInfo().getName(true)+';');
}
dumpChildren(cls);
indent--;
println("}");
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:34,代码来源:SignatureWriter.java
示例5: owner
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public final FieldOutline owner() {
return AbstractField.this;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:AbstractField.java
示例6: generate
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public FieldOutline generate(ClassOutlineImpl context, CPropertyInfo prop) {
return new IsSetField(context,prop,
core.generate(context, prop),
generateUnSetMethod,generateIsSetMethod);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:IsSetFieldRenderer.java
示例7: generate
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public FieldOutline generate(ClassOutlineImpl outline, CPropertyInfo prop) {
return decideRenderer(outline,prop).generate(outline,prop);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:DefaultFieldRenderer.java
示例8: generate
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public FieldOutline generate(ClassOutlineImpl outline, CPropertyInfo prop) {
if(prop.defaultValue.compute(outline.parent())==null)
return fallback.generate(outline, prop);
else
return new ConstField(outline,prop);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:ConstFieldRenderer.java
示例9: getField
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public FieldOutline getField(CPropertyInfo prop) {
return fields.get(prop);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:BeanGenerator.java
示例10: ElementCollectionAdapter
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public ElementCollectionAdapter(FieldOutline core, CElementInfo ei) {
super(core, ei);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ElementCollectionAdapter.java
示例11: ElementAdapter
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public ElementAdapter(FieldOutline core, CElementInfo ei) {
this.core = core;
this.ei = ei;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ElementAdapter.java
示例12: owner
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public FieldOutline owner() {
return ElementAdapter.this;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ElementAdapter.java
示例13: PropertyImpl
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
PropertyImpl( Mapping parent, FieldOutline fr, QName elementName ) {
this.parent = parent;
this.fr = fr;
this.elementName = elementName;
this.codeModel = fr.getRawType().owner();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:PropertyImpl.java
示例14: ElementSingleAdapter
import com.sun.tools.internal.xjc.outline.FieldOutline; //导入依赖的package包/类
public ElementSingleAdapter(FieldOutline core, CElementInfo ei) {
super(core, ei);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ElementSingleAdapter.java
注:本文中的com.sun.tools.internal.xjc.outline.FieldOutline类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论