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.

FieldGet.java 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. import org.aspectj.weaver.ResolvedType;
  15. public class FieldGet extends Expr {
  16. Member field;
  17. ResolvedType resolvedType;
  18. public FieldGet(Member field, ResolvedType resolvedType) {
  19. super();
  20. this.field = field;
  21. this.resolvedType = resolvedType;
  22. }
  23. public ResolvedType getType() {
  24. return resolvedType;
  25. }
  26. public String toString() {
  27. return "(FieldGet " + field + ")";
  28. }
  29. public void accept(IExprVisitor v) {
  30. v.visit(this);
  31. }
  32. public Member getField() {
  33. return field;
  34. }
  35. }