Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/ElementUtils.java @ 18776:c0fb70634640
Truffle-DSL: support for frame types Frame, MaterializedFrame. Added validation for frame type consistency. Some refactorings along the way.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 05 Jan 2015 01:31:08 +0100 |
parents | 2c669386b5d0 |
children | 121748e43a01 |
comparison
equal
deleted
inserted
replaced
18775:a069a87b9a02 | 18776:c0fb70634640 |
---|---|
952 return false; | 952 return false; |
953 } | 953 } |
954 } | 954 } |
955 } | 955 } |
956 | 956 |
957 public static List<String> getUniqueIdentifiers(List<TypeMirror> typeMirror) { | |
958 List<String> ids = new ArrayList<>(); | |
959 for (TypeMirror type : typeMirror) { | |
960 ids.add(getUniqueIdentifier(type)); | |
961 } | |
962 return ids; | |
963 } | |
964 | |
957 public static String getUniqueIdentifier(TypeMirror typeMirror) { | 965 public static String getUniqueIdentifier(TypeMirror typeMirror) { |
958 if (typeMirror.getKind() == TypeKind.ARRAY) { | 966 if (typeMirror.getKind() == TypeKind.ARRAY) { |
959 return getUniqueIdentifier(((ArrayType) typeMirror).getComponentType()) + "[]"; | 967 return getUniqueIdentifier(((ArrayType) typeMirror).getComponentType()) + "[]"; |
960 } else { | 968 } else { |
961 return getQualifiedName(typeMirror); | 969 return getQualifiedName(typeMirror); |