comparison jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ValueKind.java @ 23714:c351824fff81

Add IllegalValueKind.toString
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Thu, 23 Jun 2016 09:18:05 -0700
parents 282873d0192c
children
comparison
equal deleted inserted replaced
23713:60c0f5eca268 23714:c351824fff81
58 58
59 @Override 59 @Override
60 public IllegalValueKind changeType(PlatformKind newPlatformKind) { 60 public IllegalValueKind changeType(PlatformKind newPlatformKind) {
61 return this; 61 return this;
62 } 62 }
63
64 @Override
65 public String toString() {
66 return "ILLEGAL";
67 }
63 } 68 }
64 69
65 /** 70 /**
66 * The non-type. 71 * The non-type.
67 */ 72 */
83 */ 88 */
84 public abstract K changeType(PlatformKind newPlatformKind); 89 public abstract K changeType(PlatformKind newPlatformKind);
85 90
86 /** 91 /**
87 * Returns a String representation of the kind, which will be included at the end of 92 * Returns a String representation of the kind, which will be included at the end of
88 * {@link Value#toString()} implementation. 93 * {@link Value#toString()} implementation. Defaults to {@link #toString()} but can be
94 * overridden to provide something more specific.
89 */ 95 */
90 public String getKindSuffix() { 96 public String getKindSuffix() {
91 return toString(); 97 return toString();
92 } 98 }
93 } 99 }