package org.zwobble.couscous.ast.sugar; import org.zwobble.couscous.ast.FieldDeclarationNode; import org.zwobble.couscous.ast.MethodNode; import org.zwobble.couscous.frontends.java.AnonymousType; import org.zwobble.couscous.types.Type; import java.util.List; import java.util.Optional; import java.util.Set; public class AnonymousClass { private final Optional type; private final Set superTypes; private final List fields; private final List methods; public AnonymousClass( Optional type, Set superTypes, List fields, List methods) { this.type = type; this.superTypes = superTypes; this.fields = fields; this.methods = methods; } public Optional getType() { return type; } public Set getSuperTypes() { return superTypes; } public List getFields() { return fields; } public List getMethods() { return methods; } }