JAnnotatedElement
, JMember
public final class JConstant extends AbstractJField
Constructor | Description |
---|---|
JConstant(JType type,
java.lang.String name) |
Creates a new JConstant.
|
JConstant(JType type,
java.lang.String name,
boolean makePrivate) |
Creates a new JConstant.
|
getComment, getDeclaringClass, getInitString, getModifiers, getName, getType, isDateTime, setComment, setComment, setDateTime, setDeclaringClass, setInitString, setModifiers, setName, toString
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, printAnnotations, removeAnnotation
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.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com