List of usage examples for org.eclipse.jdt.internal.compiler.lookup BinaryTypeBinding methods
MethodBinding[] methods
To view the source code for org.eclipse.jdt.internal.compiler.lookup BinaryTypeBinding methods.
Click Source Link
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.statemachine.copyinheritance.CopyInheritance.java
License:Open Source License
/** * Copy all SyntheticRoleFieldAccess-methods from superTeam to teamModel. * Variant for binary super-team.//from w w w . ja v a 2 s .c o m * * @param teamModel * @param superTeam */ public static void copySyntheticTeamMethods(TeamModel teamModel, BinaryTypeBinding superTeam) { // Note: the following methods are helping to map this synth methods from tsuper to tsub: // ConstantPoolObjectReader.findMethodBinding() // RoleModel.mapSyntheticMethod() TypeDeclaration tgtTeamDecl = teamModel.getAst(); for (MethodBinding method : superTeam.methods()) { if (method instanceof SyntheticRoleFieldAccess) { SyntheticRoleFieldAccess srcMethod = (SyntheticRoleFieldAccess) method; srcMethod.resolveTypes(); srcMethod.resolvedField(); copySyntheticMethod(srcMethod, tgtTeamDecl, tgtTeamDecl); } } }