Package org.exolab.javasource
Class JConstant
java.lang.Object
org.exolab.javasource.JAnnotatedElementHelper
org.exolab.javasource.AbstractJField
org.exolab.javasource.JConstant
- All Implemented Interfaces:
JAnnotatedElement
,JMember
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.
- Since:
- 1.3
- Author:
- Werner Guttmann
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
JConstant
Creates a new JConstant.- Parameters:
type
- JType of this new constant.name
- Name of this new constant.
-
JConstant
Creates a new JConstant.- Parameters:
type
- JType of this new constant.name
- Name of this new constant.makePrivate
- True if constant definition should have private visibility.
-