|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.javasource.JAnnotatedElementHelper
org.exolab.javasource.AbstractJField
org.exolab.javasource.JConstant
public final class JConstant
A class which holds information about a constant. Modeled closely after the Java Reflection API. This class is part of package which is used to create source code in memory.
Constructor Summary | |
---|---|
JConstant(JType type,
java.lang.String name)
Creates a new JConstant. |
|
JConstant(JType type,
java.lang.String name,
boolean makePrivate)
Creates a new JConstant. |
Method Summary |
---|
Methods inherited from class org.exolab.javasource.AbstractJField |
---|
getComment, getDeclaringClass, getInitString, getModifiers, getName, getType, isDateTime, setComment, setComment, setDateTime, setDeclaringClass, setInitString, setModifiers, setName, toString |
Methods inherited from class org.exolab.javasource.JAnnotatedElementHelper |
---|
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, printAnnotations, removeAnnotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JConstant(JType type, java.lang.String name)
type
- JType of this new constant.name
- Name of this new constant.public JConstant(JType type, java.lang.String name, boolean makePrivate)
type
- JType of this new constant.name
- Name of this new constant.makePrivate
- True if constant definition should have private visibility.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |