Examples of declaresFieldByName()


Examples of soot.SootClass.declaresFieldByName()

        // the given class and its superclass.
        for (Iterator fields = theClass.getFields().snapshotIterator(); fields
                .hasNext();) {
            SootField field = (SootField) fields.next();

            if (superClass.declaresFieldByName(field.getName())) {
                // SootField superField = superClass.getFieldByName(field.getName());
                String newName = StringUtilities.sanitizeName(superClass
                        .getName())
                        + field.getName();
                System.out.println("Renaming field " + field + " to " + newName
View Full Code Here

Examples of soot.SootClass.declaresFieldByName()

                    .derivesFrom(theClass, PtolemyUtilities.actorClass)
                    || SootUtilities.derivesFrom(theClass,
                            PtolemyUtilities.compositeActorClass)
                    || SootUtilities.derivesFrom(theClass,
                            PtolemyUtilities.attributeClass)) {
                if (theClass.declaresFieldByName(ModelTransformer
                        .getContainerFieldName())) {
                    for (Iterator methods = theClass.getMethods().iterator(); methods
                            .hasNext();) {
                        SootMethod method = (SootMethod) methods.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.