public void visitEnum(String name, String desc, String value) { final int methodName = myContext.get(name); final String methodDescr = "()" + desc; myUsages.add( UsageRepr.createMethodUsage(myContext, methodName, myType.myClassName, methodDescr)); myUsages.add( UsageRepr.createMetaMethodUsage( myContext, methodName, myType.myClassName, methodDescr)); myUsedArguments.add(methodName); }
public void visit(String name, Object value) { final String methodDescr = getMethodDescr(value); final int methodName = myContext.get(name); if (value instanceof Type) { final String className = ((Type) value).getClassName().replace('.', '/'); if (className != null) { myUsages.add(UsageRepr.createClassUsage(myContext, myContext.get(className))); } } myUsages.add( UsageRepr.createMethodUsage(myContext, methodName, myType.myClassName, methodDescr)); myUsages.add( UsageRepr.createMetaMethodUsage( myContext, methodName, myType.myClassName, methodDescr)); myUsedArguments.add(methodName); }