|
@@ -42,21 +42,21 @@ public class CDiClass extends AClass<Object> implements DiClass {
|
|
|
@Override
|
|
@Override
|
|
|
public IFields fields() {
|
|
public IFields fields() {
|
|
|
AHints attr = FElements.newHints();
|
|
AHints attr = FElements.newHints();
|
|
|
- return FElements.newFields(attr, CQueryAbstract.Builder.fromQuery(attr, this::getRFields));
|
|
|
|
|
|
|
+ return FElements.newFields(attr, CQuery.from().query(attr, this::getRFields));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private CQuery<IField> getRFields(AHints hints) {
|
|
private CQuery<IField> getRFields(AHints hints) {
|
|
|
if(hints.hintDeclared()) {
|
|
if(hints.hintDeclared()) {
|
|
|
- return CQueryAbstract.Builder
|
|
|
|
|
- .fromCollection(type.fields())
|
|
|
|
|
|
|
+ return CQuery.from()
|
|
|
|
|
+ .collection(type.fields())
|
|
|
.map(f -> new CDiField(true, f));
|
|
.map(f -> new CDiField(true, f));
|
|
|
} else if(hints.hintAny()) {
|
|
} else if(hints.hintAny()) {
|
|
|
- return CQueryAbstract.Builder
|
|
|
|
|
- .fromCollection(type.allFields())
|
|
|
|
|
|
|
+ return CQuery.from()
|
|
|
|
|
+ .collection(type.allFields())
|
|
|
.map(f -> new CDiField(isdecl(f), f));
|
|
.map(f -> new CDiField(isdecl(f), f));
|
|
|
} else {
|
|
} else {
|
|
|
- return CQueryAbstract.Builder
|
|
|
|
|
- .fromCollection(type.visibleFields())
|
|
|
|
|
|
|
+ return CQuery.from()
|
|
|
|
|
+ .collection(type.visibleFields())
|
|
|
.map(f -> new CDiField(isdecl(f), f));
|
|
.map(f -> new CDiField(isdecl(f), f));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -72,21 +72,21 @@ public class CDiClass extends AClass<Object> implements DiClass {
|
|
|
@Override
|
|
@Override
|
|
|
public IMethods methods() {
|
|
public IMethods methods() {
|
|
|
AHints attr = FElements.newHints();
|
|
AHints attr = FElements.newHints();
|
|
|
- return FElements.newMethods(attr, CQueryAbstract.Builder.fromQuery(attr, this::getRMethods));
|
|
|
|
|
|
|
+ return FElements.newMethods(attr, CQuery.from().query(attr, this::getRMethods));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private CQuery<IMethod> getRMethods(AHints hints) {
|
|
private CQuery<IMethod> getRMethods(AHints hints) {
|
|
|
if(hints.hintDeclared()) {
|
|
if(hints.hintDeclared()) {
|
|
|
- return CQueryAbstract.Builder
|
|
|
|
|
- .fromCollection(type.methods())
|
|
|
|
|
|
|
+ return CQuery.from()
|
|
|
|
|
+ .collection(type.methods())
|
|
|
.map(m -> new CdiMethod(true, m));
|
|
.map(m -> new CdiMethod(true, m));
|
|
|
} else if(hints.hintAny()) {
|
|
} else if(hints.hintAny()) {
|
|
|
- return CQueryAbstract.Builder
|
|
|
|
|
- .fromCollection(type.allMethods())
|
|
|
|
|
|
|
+ return CQuery.from()
|
|
|
|
|
+ .collection(type.allMethods())
|
|
|
.map(m -> new CdiMethod(isdecl(m), m));
|
|
.map(m -> new CdiMethod(isdecl(m), m));
|
|
|
} else {
|
|
} else {
|
|
|
- return CQueryAbstract.Builder
|
|
|
|
|
- .fromCollection(type.visibleMethods())
|
|
|
|
|
|
|
+ return CQuery.from()
|
|
|
|
|
+ .collection(type.visibleMethods())
|
|
|
.map(m -> new CdiMethod(isdecl(m), m));
|
|
.map(m -> new CdiMethod(isdecl(m), m));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|