Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ReferenceType


        Type returnType = computeType(returnTypeClass);
        String targetClassName = method.getDeclaringClass().getName();
        InstructionList instructionList = new InstructionList();
        // pushd 'target' and 'value' onto operand stack and check type of each
        instructionList.append(new ALOAD(1));
        ReferenceType targetType = new ObjectType(targetClassName);
        instructionList.append(instructionFactory.createCheckCast(targetType));

        Class valueTypeClass = method.getParameterTypes()[0];
        Type valueType = computeType(valueTypeClass);
        pushAndConvertValueArg(instructionList, instructionFactory, valueTypeClass,
View Full Code Here


        }
        else if ((aSubType instanceof ReferenceType)
            && (aSuperType instanceof ReferenceType))
        {
            // widening reference conversion?
            final ReferenceType aSubRefType = (ReferenceType) aSubType;
            result = aSubRefType.isAssignmentCompatibleWith(aSuperType);
        }
        // widening primitive conversion?
        else if (aSubType.equals(Type.BYTE)) {
            result =
                aSuperType.equals(Type.SHORT)
View Full Code Here

TOP

Related Classes of org.apache.bcel.generic.ReferenceType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.