本文整理汇总了Java中shapegen.ClassCase.Kind类的典型用法代码示例。如果您正苦于以下问题:Java Kind类的具体用法?Java Kind怎么用?Java Kind使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Kind类属于shapegen.ClassCase包,在下文中一共展示了Kind类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
import shapegen.ClassCase.Kind; //导入依赖的package包/类
public void start(boolean includeClasses) {
kinds =
supertypes.isEmpty()?
(new Kind[]{IDEFAULT, IPRESENT})
: ((includeClasses && canBeClass)?
new Kind[]{CNONE, IVAC, IDEFAULT, IPRESENT}
: new Kind[]{IVAC, IDEFAULT, IPRESENT});
currentKindIndex = 0;
for (TTNode sub : supertypes) {
sub.start(includeClasses);
}
}
示例2: cExhaustive
import shapegen.ClassCase.Kind; //导入依赖的package包/类
public List<Hierarchy> cExhaustive() {
final Kind[] iKinds = new Kind[]{IDEFAULT, IVAC, IPRESENT, null};
final Kind[] cKinds = new Kind[]{CNONE, CABSTRACT, CCONCRETE};
List<Hierarchy> totest = new ArrayList<>();
for (int i1 = 0; i1 < iKinds.length; ++i1) {
for (int i2 = 0; i2 < iKinds.length; ++i2) {
for (int i3 = 0; i3 < iKinds.length; ++i3) {
for (int c1 = 0; c1 < cKinds.length; ++c1) {
for (int c2 = 0; c2 < cKinds.length; ++c2) {
for (int c3 = 0; c3 < cKinds.length; ++c3) {
totest.add( new Hierarchy(
new ClassCase(cKinds[c1],
new ClassCase(cKinds[c2],
new ClassCase(cKinds[c3],
null,
iList(iKinds[i1])
),
iList(iKinds[i2])
),
iList(iKinds[i3])
)));
}
}
}
}
}
}
return totest;
}
示例3: iList
import shapegen.ClassCase.Kind; //导入依赖的package包/类
private List<ClassCase> iList(Kind kind) {
if (kind == null) {
return EMPTY_LIST;
} else {
List<ClassCase> itfs = new ArrayList<>();
itfs.add(new ClassCase(kind, null, EMPTY_LIST));
return itfs;
}
}
示例4: getKind
import shapegen.ClassCase.Kind; //导入依赖的package包/类
private Kind getKind() {
return kinds[currentKindIndex];
}