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.

Var.java 970B

12345678910111213141516171819202122232425262728293031323334353637
  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.ResolvedType;
  14. public class Var extends Expr {
  15. ResolvedType variableType;
  16. public Var(ResolvedType variableType) {
  17. super();
  18. this.variableType = variableType;
  19. }
  20. public ResolvedType getType() {
  21. return variableType;
  22. }
  23. public String toString() {
  24. return "(Var " + variableType + ")";
  25. }
  26. public void accept(IExprVisitor v) {
  27. v.visit(this);
  28. }
  29. }