當前位置: 首頁>>代碼示例>>Java>>正文


Java Opcodes.ACC_BRIDGE屬性代碼示例

本文整理匯總了Java中org.objectweb.asm.Opcodes.ACC_BRIDGE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Opcodes.ACC_BRIDGE屬性的具體用法?Java Opcodes.ACC_BRIDGE怎麽用?Java Opcodes.ACC_BRIDGE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.objectweb.asm.Opcodes的用法示例。


在下文中一共展示了Opcodes.ACC_BRIDGE屬性的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getScore

@Override
public double getScore(MethodInstance methodA, MethodInstance methodB, ClassEnvironment env) {
	if (!checkAsmNodes(methodA, methodB)) return compareAsmNodes(methodA, methodB);

	int mask = (Opcodes.ACC_PUBLIC | Opcodes.ACC_PROTECTED | Opcodes.ACC_PRIVATE) | Opcodes.ACC_FINAL | Opcodes.ACC_SYNCHRONIZED | Opcodes.ACC_BRIDGE | Opcodes.ACC_VARARGS | Opcodes.ACC_STRICT | Opcodes.ACC_SYNTHETIC;
	int resultA = methodA.getAsmNode().access & mask;
	int resultB = methodB.getAsmNode().access & mask;

	return 1 - Integer.bitCount(resultA ^ resultB) / 8.;
}
 
開發者ID:sfPlayer1,項目名稱:Matcher,代碼行數:10,代碼來源:MethodClassifier.java

示例2: instrument

private boolean instrument(String name, String signature, int access) {
	return 
		(access & Opcodes.ACC_ABSTRACT) == 0 && 
		(access & Opcodes.ACC_BRIDGE) == 0 && 
		(access & Opcodes.ACC_NATIVE) == 0 &&
		(isEntryPoint(name, signature) || isExitPoint(name, signature));
}
 
開發者ID:RuiChen08,項目名稱:dacapobench,代碼行數:7,代碼來源:LogInstrument.java

示例3: visitMethod

@Override
public Textifier visitMethod(final int access, final String name,
        final String desc, final String signature, final String[] exceptions) {
    buf.setLength(0);
    buf.append('\n');
    if ((access & Opcodes.ACC_DEPRECATED) != 0) {
        buf.append(tab).append("// DEPRECATED\n");
    }
    buf.append(tab).append("// access flags 0x")
            .append(Integer.toHexString(access).toUpperCase()).append('\n');

    if (signature != null) {
        buf.append(tab);
        appendDescriptor(METHOD_SIGNATURE, signature);

        TraceSignatureVisitor v = new TraceSignatureVisitor(0);
        SignatureReader r = new SignatureReader(signature);
        r.accept(v);
        String genericDecl = v.getDeclaration();
        String genericReturn = v.getReturnType();
        String genericExceptions = v.getExceptions();

        buf.append(tab).append("// declaration: ").append(genericReturn)
                .append(' ').append(name).append(genericDecl);
        if (genericExceptions != null) {
            buf.append(" throws ").append(genericExceptions);
        }
        buf.append('\n');
    }

    buf.append(tab);
    appendAccess(access & ~Opcodes.ACC_VOLATILE);
    if ((access & Opcodes.ACC_NATIVE) != 0) {
        buf.append("native ");
    }
    if ((access & Opcodes.ACC_VARARGS) != 0) {
        buf.append("varargs ");
    }
    if ((access & Opcodes.ACC_BRIDGE) != 0) {
        buf.append("bridge ");
    }
    if ((this.access & Opcodes.ACC_INTERFACE) != 0
            && (access & Opcodes.ACC_ABSTRACT) == 0
            && (access & Opcodes.ACC_STATIC) == 0) {
        buf.append("default ");
    }

    buf.append(name);
    appendDescriptor(METHOD_DESCRIPTOR, desc);
    if (exceptions != null && exceptions.length > 0) {
        buf.append(" throws ");
        for (int i = 0; i < exceptions.length; ++i) {
            appendDescriptor(INTERNAL_NAME, exceptions[i]);
            buf.append(' ');
        }
    }

    buf.append('\n');
    text.add(buf.toString());

    Textifier t = createTextifier();
    text.add(t.getText());
    return t;
}
 
開發者ID:ItzSomebody,項目名稱:DirectLeaks-AntiReleak-Remover,代碼行數:64,代碼來源:Textifier.java

示例4: isMethodSyntheticOrBridge

private static boolean isMethodSyntheticOrBridge(int methodAccess){
    return (methodAccess & Opcodes.ACC_SYNTHETIC) > 0
            || (methodAccess & Opcodes.ACC_BRIDGE) > 0 ;
}
 
開發者ID:arcuri82,項目名稱:testing_security_development_enterprise_systems,代碼行數:4,代碼來源:CoverageClassVisitor.java

示例5: instrument

private boolean instrument(int access) {
	return 
		(access & Opcodes.ACC_ABSTRACT) == 0 && 
		(access & Opcodes.ACC_BRIDGE) == 0 && 
		(access & Opcodes.ACC_NATIVE) == 0;
}
 
開發者ID:RuiChen08,項目名稱:dacapobench,代碼行數:6,代碼來源:MonitorInstrument.java

示例6: instrument

private boolean instrument(String name, int access) {
	return (access & Opcodes.ACC_ABSTRACT) == 0 && (access & Opcodes.ACC_BRIDGE) == 0 && (access & Opcodes.ACC_NATIVE) == 0;
}
 
開發者ID:RuiChen08,項目名稱:dacapobench,代碼行數:3,代碼來源:CallChainInstrument.java

示例7: instrument

private boolean instrument(int access) {
	return (access & Opcodes.ACC_ABSTRACT) == 0
			&& (access & Opcodes.ACC_BRIDGE) == 0
			&& (access & Opcodes.ACC_NATIVE) == 0;
}
 
開發者ID:RuiChen08,項目名稱:dacapobench,代碼行數:5,代碼來源:AllocateInstrument.java

示例8: instrument

private boolean instrument(String name, int access) {
	return (access & Opcodes.ACC_ABSTRACT) == 0 && (access & Opcodes.ACC_BRIDGE) == 0 && (access & Opcodes.ACC_NATIVE) == 0 && !CLINIT_NAME.equals(name);
}
 
開發者ID:RuiChen08,項目名稱:dacapobench,代碼行數:3,代碼來源:MethodInstrument.java

示例9: instrument

private boolean instrument(int access) {
	return (access & Opcodes.ACC_ABSTRACT) == 0 && (access & Opcodes.ACC_BRIDGE) == 0 && (access & Opcodes.ACC_NATIVE) == 0;
}
 
開發者ID:RuiChen08,項目名稱:dacapobench,代碼行數:3,代碼來源:RuntimeInstrument.java

示例10: isMethodSyntheticOrBridge

public static boolean isMethodSyntheticOrBridge(int methodAccess){
    return (methodAccess & Opcodes.ACC_SYNTHETIC) > 0
            || (methodAccess & Opcodes.ACC_BRIDGE) > 0 ;
}
 
開發者ID:EMResearch,項目名稱:EvoMaster,代碼行數:4,代碼來源:Constants.java


注:本文中的org.objectweb.asm.Opcodes.ACC_BRIDGE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。