You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FieldGetCall.java 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* *******************************************************************
  2. * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver.ast;
  13. import org.aspectj.weaver.Member;
  14. public class FieldGetCall extends Test {
  15. // assert m.return value is boolean
  16. private final Member field;
  17. private final Member method;
  18. private final Expr[] args;
  19. public FieldGetCall(Member f, Member m, Expr[] args) {
  20. super();
  21. this.field = f;
  22. this.method = m;
  23. this.args = args;
  24. }
  25. public void accept(ITestVisitor v) {
  26. v.visit(this);
  27. }
  28. public Expr[] getArgs() {
  29. return args;
  30. }
  31. public Member getMethod() {
  32. return method;
  33. }
  34. public Member getField() {
  35. return field;
  36. }
  37. }