aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtPrimitiveType.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-05-15 14:50:12 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-05-15 14:50:12 +0000
commitb8af5440324850f846b918d05faa256310803204 (patch)
treec86f87452dd9e4af61f548dce29fb842187e9fd8 /src/main/javassist/CtPrimitiveType.java
parent8133161cb622bb6de1f5cc8f128e9b7a8c1a3613 (diff)
downloadjavassist-b8af5440324850f846b918d05faa256310803204.tar.gz
javassist-b8af5440324850f846b918d05faa256310803204.zip
fixed JIRA JASSIST-112
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@545 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtPrimitiveType.java')
-rw-r--r--src/main/javassist/CtPrimitiveType.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/javassist/CtPrimitiveType.java b/src/main/javassist/CtPrimitiveType.java
index a677da9d..faf67000 100644
--- a/src/main/javassist/CtPrimitiveType.java
+++ b/src/main/javassist/CtPrimitiveType.java
@@ -49,6 +49,16 @@ public final class CtPrimitiveType extends CtClass {
public boolean isPrimitive() { return true; }
/**
+ * Returns the modifiers for this type.
+ * For decoding, use <code>javassist.Modifier</code>.
+ *
+ * @see Modifier
+ */
+ public int getModifiers() {
+ return Modifier.PUBLIC | Modifier.FINAL;
+ }
+
+ /**
* Returns the descriptor representing this type.
* For example, if the type is int, then the descriptor is I.
*/