@Override
public void edit( MethodCall call )
{
String className = Descriptor.toJvmName( call.getClassName() );
MethodEntry calledMethodEntry = new MethodEntry(
new ClassEntry( className ),
call.getMethodName(),
call.getSignature()
);
ClassEntry resolvedClassEntry = resolveEntryClass( calledMethodEntry );
if( resolvedClassEntry != null && !resolvedClassEntry.equals( calledMethodEntry.getClassEntry() ) )
{
calledMethodEntry = new MethodEntry(
resolvedClassEntry,
call.getMethodName(),
call.getSignature()
);
}
EntryReference<BehaviorEntry,BehaviorEntry> reference = new EntryReference<BehaviorEntry,BehaviorEntry>(
calledMethodEntry,
call.getMethodName(),
behaviorEntry
);
m_behaviorReferences.put( calledMethodEntry, reference );
}
@Override
public void edit( FieldAccess call )
{
String className = Descriptor.toJvmName( call.getClassName() );
FieldEntry calledFieldEntry = new FieldEntry(
new ClassEntry( className ),
call.getFieldName()
);
ClassEntry resolvedClassEntry = resolveEntryClass( calledFieldEntry );
if( resolvedClassEntry != null && !resolvedClassEntry.equals( calledFieldEntry.getClassEntry() ) )
{
calledFieldEntry = new FieldEntry(
resolvedClassEntry,
call.getFieldName()
);
}
EntryReference<FieldEntry,BehaviorEntry> reference = new EntryReference<FieldEntry,BehaviorEntry>(
calledFieldEntry,
call.getFieldName(),
behaviorEntry
);
m_fieldReferences.put( calledFieldEntry, reference );
}
@Override
public void edit( ConstructorCall call )
{
String className = Descriptor.toJvmName( call.getClassName() );
ConstructorEntry calledConstructorEntry = new ConstructorEntry(
new ClassEntry( className ),
call.getSignature()
);
EntryReference<BehaviorEntry,BehaviorEntry> reference = new EntryReference<BehaviorEntry,BehaviorEntry>(
calledConstructorEntry,
call.getMethodName(),
behaviorEntry
);
m_behaviorReferences.put( calledConstructorEntry, reference );
}
@Override
public void edit( NewExpr call )
{
String className = Descriptor.toJvmName( call.getClassName() );
ConstructorEntry calledConstructorEntry = new ConstructorEntry(
new ClassEntry( className ),
call.getSignature()
);
EntryReference<BehaviorEntry,BehaviorEntry> reference = new EntryReference<BehaviorEntry,BehaviorEntry>(
calledConstructorEntry,
call.getClassName(),