summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/ConstantDefinition.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-08-05 09:57:37 -0700
committerSven Gothel <[email protected]>2009-08-05 09:57:37 -0700
commit814050670c7b523d0cdd049c89abf657a230c866 (patch)
tree8a09e6b316d3b9842c2418437acfe62bc331bce1 /src/java/com/sun/gluegen/ConstantDefinition.java
parent55cf5a4f224c87542b65d820b851f66d371c4062 (diff)
Fix: Allow all constanst defined by enums; Add PFD_ defines.
Diffstat (limited to 'src/java/com/sun/gluegen/ConstantDefinition.java')
-rw-r--r--src/java/com/sun/gluegen/ConstantDefinition.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/sun/gluegen/ConstantDefinition.java b/src/java/com/sun/gluegen/ConstantDefinition.java
index 60f5cef..44ce8e0 100644
--- a/src/java/com/sun/gluegen/ConstantDefinition.java
+++ b/src/java/com/sun/gluegen/ConstantDefinition.java
@@ -42,15 +42,18 @@ public class ConstantDefinition {
private HashSet aliasedNames;
private String name;
private String value;
+ private boolean isEnum;
private String enumName;
private Set/*<String>*/ aliases;
public ConstantDefinition(String name,
String value,
+ boolean isEnum,
String enumName) {
this.origName = name;
this.name = name;
this.value = value;
+ this.isEnum = isEnum;
this.enumName = enumName;
this.aliasedNames=new HashSet();
}
@@ -104,6 +107,8 @@ public class ConstantDefinition {
enumeration, or if the enum was anonymous. */
public String getEnumName() { return enumName; }
+ public boolean isEnum() { return isEnum; }
+
public Set/*<String>*/ getAliases() {
return aliases;
}