/testability-explorer/src/main/java/com/google/test/metric/asm/NoopSignatureVisitor.java

http://testability-explorer.googlecode.com/ · Java · 79 lines · 45 code · 19 blank · 15 comment · 0 complexity · 6cde6194c9164988dc18cb5aa0712464 MD5 · raw file

  1. /*
  2. * Copyright 2007 Google Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.google.test.metric.asm;
  17. import org.objectweb.asm.signature.SignatureVisitor;
  18. public class NoopSignatureVisitor implements SignatureVisitor {
  19. public SignatureVisitor visitArrayType() {
  20. return new NoopSignatureVisitor();
  21. }
  22. public void visitBaseType(char descriptor) {
  23. }
  24. public SignatureVisitor visitClassBound() {
  25. return new NoopSignatureVisitor();
  26. }
  27. public void visitClassType(String name) {
  28. }
  29. public void visitEnd() {
  30. }
  31. public SignatureVisitor visitExceptionType() {
  32. return new NoopSignatureVisitor();
  33. }
  34. public void visitFormalTypeParameter(String name) {
  35. }
  36. public void visitInnerClassType(String name) {
  37. }
  38. public SignatureVisitor visitInterface() {
  39. return new NoopSignatureVisitor();
  40. }
  41. public SignatureVisitor visitInterfaceBound() {
  42. return new NoopSignatureVisitor();
  43. }
  44. public SignatureVisitor visitParameterType() {
  45. return new NoopSignatureVisitor();
  46. }
  47. public SignatureVisitor visitReturnType() {
  48. return new NoopSignatureVisitor();
  49. }
  50. public SignatureVisitor visitSuperclass() {
  51. return new NoopSignatureVisitor();
  52. }
  53. public void visitTypeArgument() {
  54. }
  55. public SignatureVisitor visitTypeArgument(char wildcard) {
  56. return new NoopSignatureVisitor();
  57. }
  58. public void visitTypeVariable(String name) {
  59. }
  60. }