equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2014, 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 |
43 import javax.lang.model.type.PrimitiveType; |
43 import javax.lang.model.type.PrimitiveType; |
44 import javax.lang.model.type.TypeKind; |
44 import javax.lang.model.type.TypeKind; |
45 import javax.lang.model.type.TypeMirror; |
45 import javax.lang.model.type.TypeMirror; |
46 import javax.lang.model.type.TypeVisitor; |
46 import javax.lang.model.type.TypeVisitor; |
47 import javax.lang.model.util.ElementFilter; |
47 import javax.lang.model.util.ElementFilter; |
48 import javax.lang.model.util.SimpleTypeVisitor8; |
48 import javax.lang.model.util.SimpleTypeVisitor9; |
49 |
49 |
50 /* |
50 /* |
51 * <p><b>This is NOT part of any supported API. |
51 * <p><b>This is NOT part of any supported API. |
52 * If you write code that depends on this, you do so at your own |
52 * If you write code that depends on this, you do so at your own |
53 * risk. This code and its internal interfaces are subject to change |
53 * risk. This code and its internal interfaces are subject to change |
626 protected String llniFieldName(VariableElement field) { |
626 protected String llniFieldName(VariableElement field) { |
627 return maskName(field.getSimpleName().toString()); |
627 return maskName(field.getSimpleName().toString()); |
628 } |
628 } |
629 |
629 |
630 protected final boolean isLongOrDouble(TypeMirror t) { |
630 protected final boolean isLongOrDouble(TypeMirror t) { |
631 TypeVisitor<Boolean,Void> v = new SimpleTypeVisitor8<Boolean,Void>() { |
631 TypeVisitor<Boolean,Void> v = new SimpleTypeVisitor9<Boolean,Void>() { |
632 public Boolean defaultAction(TypeMirror t, Void p){ |
632 public Boolean defaultAction(TypeMirror t, Void p){ |
633 return false; |
633 return false; |
634 } |
634 } |
635 public Boolean visitArray(ArrayType t, Void p) { |
635 public Boolean visitArray(ArrayType t, Void p) { |
636 return visit(t.getComponentType(), p); |
636 return visit(t.getComponentType(), p); |