Java Aspectj Usage typeName(final JoinPoint joinPoint)

Here you can find the source of typeName(final JoinPoint joinPoint)

Description

type Name

License

Open Source License

Declaration

public static String typeName(final JoinPoint joinPoint) 

Method Source Code

//package com.java2s;

import org.aspectj.lang.JoinPoint;

public class Main {
    public static String typeName(final JoinPoint joinPoint) {
        final Class<?> type = type(joinPoint);

        if (type != null) {
            return type.getName();
        }//  ww w  .  j ava2s .co  m
        return null;
    }

    public static Class<?> type(final JoinPoint joinPoint) {
        return joinPoint.getTarget().getClass();
    }
}

Related

  1. renderJoinPoint(JoinPoint jp)
  2. resolveFileName(final String fileName)
  3. setSourceLine(InstructionHandle ih, int lineNumber)
  4. strip(String[] src, String[] toStrip)
  5. type(final JoinPoint joinPoint)
  6. unWrapJoinPoint(final JoinPoint point)