{
return new FieldJoinpoint(((FieldInvocation)invocation).getField());
}
if (invocation instanceof ConstructorInvocation)
{
return new ConstructorJoinpoint(((ConstructorInvocation)invocation).getConstructor());
}
if (invocation instanceof ConstructionInvocation)
{
return new ConstructorJoinpoint(((ConstructionInvocation)invocation).getConstructor());
}
if (invocation instanceof MethodCalledByMethodInvocation)
{
return new MethodCalledByMethodJoinpoint(((MethodCalledByMethodInvocation)invocation).getCallingMethod(), ((MethodCalledByMethodInvocation)invocation).getCalledMethod());
}