equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
738 JCExpression result = null; |
738 JCExpression result = null; |
739 public void visitConstant(Attribute.Constant v) { |
739 public void visitConstant(Attribute.Constant v) { |
740 result = Literal(v.value); |
740 result = Literal(v.value); |
741 } |
741 } |
742 public void visitClass(Attribute.Class clazz) { |
742 public void visitClass(Attribute.Class clazz) { |
743 result = ClassLiteral(clazz.type).setType(syms.classType); |
743 result = ClassLiteral(clazz.classType).setType(syms.classType); |
744 } |
744 } |
745 public void visitEnum(Attribute.Enum e) { |
745 public void visitEnum(Attribute.Enum e) { |
746 result = QualIdent(e.value); |
746 result = QualIdent(e.value); |
747 } |
747 } |
748 public void visitError(Attribute.Error e) { |
748 public void visitError(Attribute.Error e) { |