blob: 6f2cb54aa067b4520129876a4ab873225fb6a96f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
// Also used https://github.com/kwart/jd-cmd to decompile this class
// to get a sane `implements` to avoid ambiguous method errors.
//
// Both decompilers generated, essentially, the same code sans the
// interface extensions.
package io.devnulllabs.openjava.ptree;
import io.devnulllabs.openjava.ptree.util.ParseTreeVisitor;
public class EnumDeclaration extends NonLeaf implements ParseTree {
EnumDeclaration() {
}
public EnumDeclaration(ModifierList var1, String var2, TypeName[] var3, EnumConstantList var4, MemberDeclarationList var5) {
this.set(var1, var2, var3, var4, var5);
}
public ModifierList getModifiers() {
return (ModifierList)this.elementAt(0);
}
public void setModifiers(ModifierList var1) {
this.setElementAt(var1, 0);
}
public String getName() {
return (String)this.elementAt(1);
}
public TypeName[] getImplementsList() {
return (TypeName[])((TypeName[])this.elementAt(2));
}
public EnumConstantList getEnumConstantList() {
return (EnumConstantList)this.elementAt(3);
}
public MemberDeclarationList getClassBodayDeclaration() {
return (MemberDeclarationList)this.elementAt(4);
}
public void accept(ParseTreeVisitor var1) throws ParseTreeException {
var1.visit(this);
}
}
|