本文整理了Java中org.babyfish.collection.XOrderedMap.get()
方法的一些代码示例,展示了XOrderedMap.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XOrderedMap.get()
方法的具体详情如下:
包路径:org.babyfish.collection.XOrderedMap
类名称:XOrderedMap
方法名:get
暂无
代码示例来源:origin: babyfish-ct/babyfish
MethodEntry getMethodEntry(Descriptor descriptor) {
MethodEntry methodEntry = this.methodEntries.get(descriptor);
if (methodEntry == null) {
if (this.superClassEntry == null) {
return null;
}
methodEntry = this.superClassEntry.getMethodEntry(descriptor);
}
return methodEntry;
}
代码示例来源:origin: babyfish-ct/babyfish
FieldEntry getFieldEntry(String name) {
FieldEntry fieldEntry = this.fieldEntries.get(name);
if (fieldEntry == null) {
if (this.superClassEntry == null) {
return null;
}
fieldEntry = this.superClassEntry.getFieldEntry(name);
}
return fieldEntry;
}
代码示例来源:origin: babyfish-ct/babyfish
public Entity getEntity(XFetchParent<?, ?> fetchParent) {
if (this.commonAbstractCriteria == null) {
throw new IllegalStateException(queryContextIsClosed(QueryContext.class));
}
if (fetchParent instanceof AbstractFrom<?, ?>) {
XFrom<?, ?> treatedParent = ((AbstractFrom<?, ?>)fetchParent).getTreatedParent();
if (treatedParent != null) {
return getEntity(treatedParent);
}
}
if (fetchParent instanceof XFrom<?, ?>) {
XFrom<?, ?> from = getEntityMapKey((XFrom<?, ?>)fetchParent);
return this.fromEntityMap.get(from);
} else {
return this.fetchEntityMap.get(fetchParent);
}
}
代码示例来源:origin: babyfish-ct/babyfish
public MethodSource getMethodSource(Method method) {
ClassEntry classEntry = this.context.classEntries.get(
Type.getInternalName(method.getDeclaringClass()));
if (classEntry != null) {
MethodEntry methodEntry = classEntry.methodEntries.get(
new Descriptor(method.getName(), Type.getMethodDescriptor(method)));
return new MethodSource(methodEntry);
}
throw new IllegalArgumentException(
canNotFindMethodSource(
this.context.owner().getClass(),
method,
this.context.classEntries.firstEntry().getValue().clazz
)
);
}
}
代码示例来源:origin: babyfish-ct/babyfish
@Override
public void visitPath(Path<?> path) {
StringBuilder jpqlBuilder = this.jpqlBuilder;
if (path instanceof MapKeyPath<?>) {
jpqlBuilder.append("key(");
this.visit(path.getParentPath());
jpqlBuilder.append(')');
} else {
PathId pathId = this.pathIdAllocator.allocate();
if (pathId.getPath() != path) {
throw new AssertionError();
}
PathNode pathNode = this.queryContext.getPathNodes().get(pathId);
if (pathNode == null) {
throw new AssertionError();
}
this.renderPathNode(pathNode);
}
}
代码示例来源:origin: babyfish-ct/babyfish
private ClassEntry getInovkedEntry0(Class<?> clazz) {
String internalName = ASM.getInternalName(clazz);
ClassEntry ce = this.classEntries.get(internalName);
if (ce == null) {
ce = this.invokedEntries.get(internalName);
if (ce == null) {
ce = new ClassEntry(clazz, false);
this.invokedEntries.put(internalName, ce);
if (ce.clazz.getSuperclass() != null) {
ce.superClassEntry = this.getInovkedEntry0(clazz.getSuperclass());
}
}
}
return ce;
}
}
代码示例来源:origin: babyfish-ct/babyfish
private void buildOverrideChain() {
ClassEntry[] arr =
this.classEntries.values().toArray(
new ClassEntry[this.classEntries.size()]);
for (int i = 0; i < arr.length; i++) {
for (int ii = i + 1; ii < arr.length; ii++) {
for (MethodEntry methodEntry1 : arr[i].methodEntries.values()) {
int access1 = methodEntry1.methodNode.access;
if ((access1 & (Opcodes.ACC_STATIC | Opcodes.ACC_FINAL | Opcodes.ACC_PRIVATE)) == 0) {
MethodEntry methodEntry2 = arr[ii].methodEntries.get(methodEntry1.getDescriptor());
if (methodEntry2 != null) {
int access2 = methodEntry1.methodNode.access;
if ((access2 & (Opcodes.ACC_STATIC | Opcodes.ACC_PRIVATE)) == 0) {
methodEntry1.overrideTarget = methodEntry2;
}
}
}
}
}
}
}
代码示例来源:origin: babyfish-ct/babyfish
MethodEntry targetMethodEntry = classEntry.methodEntries.get(
new Descriptor(invokeVirtualNode.name, invokeVirtualNode.desc));
if (targetMethodEntry == null) {
代码示例来源:origin: babyfish-ct/babyfish
if (owner.equals(this.metadataClass.getInternalName()) &&
this.metadataClass.getDeclaredProperties().containsKey(name)) {
MetadataProperty metadataProperty = this.metadataClass.getDeclaredProperties().get(name);
Integer stackLength = this.stack.size();
if (opcode == Opcodes.PUTFIELD) {
abstractInsnNode != null;
abstractInsnNode = abstractInsnNode.getPrevious()) {
if (stackLength.equals(this.selfWillBeStackTopInsnMap.get(abstractInsnNode))) {
FieldInsnNode objectModelFieldInsnNode =
new FieldInsnNode(
代码示例来源:origin: babyfish-ct/babyfish
catchActions.get(entry.getKey()).accept(this);
innerMV.visitJumpInsn(Opcodes.GOTO, endLabel);
代码示例来源:origin: babyfish-ct/babyfish
protected LiteralParameter getLiteralParameter(Object object) {
XOrderedMap<Object, LiteralParameter> literalParameters = this.literalParameters;
if (literalParameters == null) {
this.literalParameters = literalParameters = new LinkedHashMap<>();
}
LiteralParameter literalParameter = literalParameters.get(object);
if (literalParameter == null) {
if (object instanceof LiteralExpression<?>) {
literalParameter = new LiteralParameter(literalParameters.size(),
((LiteralExpression<?>)object).getValue());
} else if (object instanceof Partition<?>) {
Collection<Object> c = new ArrayList<>();
for (Expression<?> value : ((Partition<?>)object).getValues()) {
if (value instanceof LiteralExpression<?>) {
c.add(((LiteralExpression<?>)value).getValue());
} else {
c.add(((ConstantExpression<?>)value).getValue());
}
}
literalParameter = new LiteralParameter(literalParameters.size(), c);
} else {
Arguments.mustBeInstanceOfAnyOfValue("object", object, LiteralExpression.class, Partition.class);
}
literalParameters.put(object, literalParameter);
}
return literalParameter;
}
代码示例来源:origin: babyfish-ct/babyfish
);
MetadataPropertyImpl superProperty = superMetadataClass.properties.get(this.unresolved.contravarianceFrom);
if (superProperty == null) {
throw new IllegalClassException(
代码示例来源:origin: babyfish-ct/babyfish
superMetadataClass.properties.get(this.unresolved.contravarianceFrom);
if (superProperty == null) {
throw new IllegalClassException(
代码示例来源:origin: babyfish-ct/babyfish
oppositeKeyProperty = this.targetClass.declaredProperties.get(this.unresolved.mapKeyName);
if (oppositeKeyProperty == null) {
throw new IllegalClassException(
代码示例来源:origin: babyfish-ct/babyfish
for (AnnotationNode comparatorPropertyNode : comparatorPropertyNodes) {
String propertyName = ASMTreeUtils.getAnnotationValue(comparatorPropertyNode, "name");
MetadataProperty comparatorProperty = this.getProperties().get(propertyName);
if (comparatorProperty == null) {
throw new IllegalClassException(
代码示例来源:origin: babyfish-ct/babyfish
if (abstractInsnNode instanceof MethodInsnNode) {
MethodInsnNode methodInsnNode = (MethodInsnNode)abstractInsnNode;
ClassEntry invokedClassEntry = this.classEntries.get(methodInsnNode.owner);
if (invokedClassEntry != null) {
MethodEntry invokedMethodEntry = invokedClassEntry.getMethodEntry(methodInsnNode.name, methodInsnNode.desc);
代码示例来源:origin: babyfish-ct/babyfish
MetadataPropertyImpl referenceProperty = null;
if (this.unresolved.indexOf != null) {
referenceProperty = declaringClass.declaredProperties.get(this.unresolved.indexOf);
} else if (this.unresolved.keyOf != null) {
referenceProperty = declaringClass.declaredProperties.get(this.unresolved.keyOf);
} else {
return;
代码示例来源:origin: babyfish-ct/babyfish
MetadataPropertyImpl oppositeProperty = this.targetClass.declaredProperties.get(opposite);
if (oppositeProperty == null) {
throw new IllegalClassException(
代码示例来源:origin: babyfish-ct/babyfish
Integer column;
if (subPlanAlias != null) {
column = allEntityMap.get(subPlanAlias);
if (column == null) {
throw new QueryException(
代码示例来源:origin: babyfish-ct/babyfish
JPAMetadataPropertyImpl oppositeProperty = this.targetClass.declaredProperties.get(mappedBy);
if (oppositeProperty == null) {
throw new IllegalClassException(
内容来源于网络,如有侵权,请联系作者删除!