}
@Override
public Void visitInvocationExpression( InvocationExpression node, SourceIndex index )
{
MemberReference ref = node.getUserData( Keys.MEMBER_REFERENCE );
// get the behavior entry
ClassEntry classEntry = new ClassEntry( ref.getDeclaringType().getInternalName() );
BehaviorEntry behaviorEntry = null;
if( ref instanceof MethodReference )
{
MethodReference methodRef = (MethodReference)ref;
if( methodRef.isConstructor() )
{
behaviorEntry = new ConstructorEntry( classEntry, ref.getSignature() );
}
else if( methodRef.isTypeInitializer() )
{
behaviorEntry = new ConstructorEntry( classEntry );
}
else
{
behaviorEntry = new MethodEntry( classEntry, ref.getName(), ref.getSignature() );
}
}
if( behaviorEntry != null )
{
// get the node for the token