Class EnumDeclaration.Constant
- java.lang.Object
-
- org.jd.core.v1.model.javasyntax.declaration.EnumDeclaration.Constant
-
- All Implemented Interfaces:
Declaration
- Direct Known Subclasses:
ClassFileEnumDeclaration.ClassFileConstant
- Enclosing class:
- EnumDeclaration
public static class EnumDeclaration.Constant extends java.lang.Object implements Declaration
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseAnnotationReference
annotationReferences
protected BaseExpression
arguments
protected BodyDeclaration
bodyDeclaration
protected int
lineNumber
protected java.lang.String
name
-
Fields inherited from interface org.jd.core.v1.model.javasyntax.declaration.Declaration
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_BRIDGE, FLAG_DEFAULT, FLAG_ENUM, FLAG_FINAL, FLAG_INTERFACE, FLAG_MANDATED, FLAG_MODULE, FLAG_NATIVE, FLAG_OPEN, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STATIC_PHASE, FLAG_STRICT, FLAG_SUPER, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_TRANSITIVE, FLAG_VARARGS, FLAG_VOLATILE
-
-
Constructor Summary
Constructors Constructor Description Constant(int lineNumber, java.lang.String name)
Constant(int lineNumber, java.lang.String name, BaseExpression arguments)
Constant(int lineNumber, java.lang.String name, BaseExpression arguments, BodyDeclaration bodyDeclaration)
Constant(int lineNumber, BaseAnnotationReference annotationReferences, java.lang.String name, BaseExpression arguments, BodyDeclaration bodyDeclaration)
Constant(java.lang.String name)
Constant(java.lang.String name, BaseExpression arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(DeclarationVisitor visitor)
BaseAnnotationReference
getAnnotationReferences()
BaseExpression
getArguments()
BodyDeclaration
getBodyDeclaration()
int
getLineNumber()
java.lang.String
getName()
void
setArguments(BaseExpression arguments)
-
-
-
Field Detail
-
lineNumber
protected int lineNumber
-
annotationReferences
protected BaseAnnotationReference annotationReferences
-
name
protected java.lang.String name
-
arguments
protected BaseExpression arguments
-
bodyDeclaration
protected BodyDeclaration bodyDeclaration
-
-
Constructor Detail
-
Constant
public Constant(java.lang.String name)
-
Constant
public Constant(int lineNumber, java.lang.String name)
-
Constant
public Constant(java.lang.String name, BaseExpression arguments)
-
Constant
public Constant(int lineNumber, java.lang.String name, BaseExpression arguments)
-
Constant
public Constant(int lineNumber, java.lang.String name, BaseExpression arguments, BodyDeclaration bodyDeclaration)
-
Constant
public Constant(int lineNumber, BaseAnnotationReference annotationReferences, java.lang.String name, BaseExpression arguments, BodyDeclaration bodyDeclaration)
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
-
getAnnotationReferences
public BaseAnnotationReference getAnnotationReferences()
-
getName
public java.lang.String getName()
-
getArguments
public BaseExpression getArguments()
-
setArguments
public void setArguments(BaseExpression arguments)
-
getBodyDeclaration
public BodyDeclaration getBodyDeclaration()
-
accept
public void accept(DeclarationVisitor visitor)
- Specified by:
accept
in interfaceDeclaration
-
-