org.objectweb.asm.tree.analysis.BasicValue.isReference()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.objectweb.asm.tree.analysis.BasicValue.isReference()方法的一些代码示例,展示了BasicValue.isReference()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BasicValue.isReference()方法的具体详情如下:
包路径:org.objectweb.asm.tree.analysis.BasicValue
类名称:BasicValue
方法名:isReference

BasicValue.isReference介绍

暂无

代码示例

代码示例来源:origin: org.ow2.asm/asm-debug-all

protected boolean isArrayValue(final BasicValue value) {
  return value.isReference();
}

代码示例来源:origin: vsilaev/tascalate-javaflow

static boolean isNull(BasicValue value) {
  if (null == value)
    return true;
  if (!value.isReference())
    return false;
  Type type = value.getType();
  return "Lnull;".equals(type.getDescriptor()); 
}

代码示例来源:origin: net.tascalate.javaflow/net.tascalate.javaflow.providers.asm5

private static boolean isNull(BasicValue value) {
  if (null == value)
    return true;
  if (!value.isReference())
    return false;
  Type type = value.getType();
  return "Lnull;".equals(type.getDescriptor()); 
}

代码示例来源:origin: vsilaev/tascalate-javaflow

static boolean isNull(BasicValue value) {
  if (null == value)
    return true;
  if (!value.isReference())
    return false;
  Type type = value.getType();
  return "Lnull;".equals(type.getDescriptor()); 
}

代码示例来源:origin: vsilaev/tascalate-javaflow

static boolean isNull(BasicValue value) {
  if (null == value)
    return true;
  if (!value.isReference())
    return false;
  Type type = value.getType();
  return "Lnull;".equals(type.getDescriptor()); 
}

代码示例来源:origin: dragome/dragome-sdk

static boolean isNull(BasicValue value)
{
  if (null == value)
  {
    return true;
  }
  if (!value.isReference())
  {
    return false;
  }
  final Type type= value.getType();
  return "Lnull;".equals(type.getDescriptor());
}

代码示例来源:origin: vsilaev/tascalate-javaflow

static boolean isNull(BasicValue value) {
  if (null == value)
    return true;
  if (!value.isReference())
    return false;
  Type type = value.getType();
  return "Lnull;".equals(type.getDescriptor()); 
}

代码示例来源:origin: co.paralleluniverse/quasar

static boolean isNullType(BasicValue v) {
  return (v == BasicValue.UNINITIALIZED_VALUE)
      || (v.isReference() && v.getType().getInternalName().equals("null"));
}

代码示例来源:origin: org.ow2.asm/asm-debug-all

break;
case ALOAD:
  if (!value.isReference()) {
    throw new AnalyzerException(insn, null, "an object reference",
        value);
  if (!value.isReference()
      && !BasicValue.RETURNADDRESS_VALUE.equals(value)) {
    throw new AnalyzerException(insn, null,

代码示例来源:origin: net.tascalate.javaflow/net.tascalate.javaflow.providers.asm5

} else if (value == BasicValue.UNINITIALIZED_VALUE) {
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitInsn(SWAP);
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitVarInsn(ALOAD, j);

代码示例来源:origin: vsilaev/tascalate-javaflow

} else if (value == BasicValue.UNINITIALIZED_VALUE) {
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitInsn(SWAP);
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitVarInsn(ALOAD, j);

代码示例来源:origin: net.tascalate.javaflow/net.tascalate.javaflow.providers.asm5

mv.visitVarInsn(ALOAD, stackRecorderVar);
  Type type = value.getType();
  if (value.isReference()) {
    mv.visitMethodInsn(INVOKEVIRTUAL, STACK_RECORDER, POP_METHOD + "Object", "()Ljava/lang/Object;", false);
    Type t = value.getType();
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitMethodInsn(INVOKEVIRTUAL, STACK_RECORDER, POP_METHOD + "Object", "()Ljava/lang/Object;", false);

代码示例来源:origin: vsilaev/tascalate-javaflow

} else if (value == BasicValue.UNINITIALIZED_VALUE) {
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitInsn(SWAP);
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitVarInsn(ALOAD, j);

代码示例来源:origin: vsilaev/tascalate-javaflow

} else if (value == BasicValue.UNINITIALIZED_VALUE) {
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitInsn(SWAP);
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitVarInsn(ALOAD, j);

代码示例来源:origin: vsilaev/tascalate-javaflow

} else if (value == BasicValue.UNINITIALIZED_VALUE) {
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitInsn(SWAP);
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitVarInsn(ALOAD, j);

代码示例来源:origin: vsilaev/tascalate-javaflow

mv.visitVarInsn(ALOAD, stackRecorderVar);
  Type type = value.getType();
  if (value.isReference()) {
    mv.visitMethodInsn(INVOKEVIRTUAL, STACK_RECORDER, POP_METHOD + "Object", "()Ljava/lang/Object;");
    Type t = value.getType();
} else if (value.isReference()) {
  mv.visitVarInsn(ALOAD, stackRecorderVar);
  mv.visitMethodInsn(INVOKEVIRTUAL, STACK_RECORDER, POP_METHOD + "Object", "()Ljava/lang/Object;");

代码示例来源:origin: org.apache.drill.exec/drill-java-exec

@Override
public BasicValue binaryOperation(final AbstractInsnNode insn,
  final BasicValue value1, final BasicValue value2) throws AnalyzerException {
 /*
  * We're looking for the assignment of a local holder objectref to a member variable.
  * If we spot that, then the local holder can't be replaced, since we don't (yet)
  * have the mechanics to replace the member variable with the holder's members or
  * to assign all of them when this happens.
  */
 if (insn.getOpcode() == Opcodes.PUTFIELD) {
  if (value2.isReference() && (value1 instanceof ReplacingBasicValue)) {
   final ReplacingBasicValue possibleThis = (ReplacingBasicValue) value1;
   if (possibleThis.isThis() && (value2 instanceof ReplacingBasicValue)) {
    // if this is a reference for a holder class, we can't replace it
    if (HOLDERS.get(value2.getType().getDescriptor()) != null) {
     final ReplacingBasicValue localRef = (ReplacingBasicValue) value2;
     localRef.setAssignedToMember();
    }
   }
  }
 }
 return super.binaryOperation(insn, value1, value2);
}

代码示例来源:origin: org.ow2.asm/asm-debug-all

break;
case CHECKCAST:
  if (!value.isReference()) {
    throw new AnalyzerException(insn, null, "an object reference",
        value);
case IFNULL:
case IFNONNULL:
  if (!value.isReference()) {
    throw new AnalyzerException(insn, null, "an object reference",
        value);

代码示例来源:origin: co.paralleluniverse/quasar

@Override
public BasicValue merge(BasicValue v, BasicValue w) {
  if (!v.equals(w)) {
    if(v.isReference() && w.isReference()) {
      int dimensions = 0;
      Type typeV = v.getType();

代码示例来源:origin: co.paralleluniverse/quasar

if (v.isReference()) {
    stackSlotIndices[i] = idxObj++;
  } else {
BasicValue v = (BasicValue) f.getLocal(i);
if (!isNullType(v)) {
  if (v.isReference()) {
    localSlotIndices[i] = idxObj++;
  } else {

相关文章