throw new RuntimeException("Not supported");
}
public ConstDeclaration adapt(AnnotationConstantRestContext context, Type baseType,
ParseTree baseTypeContext) {
ConstDeclaration constDeclaration = createNode(context);
constDeclaration.setType(baseType);
VariableDeclaratorsContext variableDeclaratorsContext =
getChild(context, VariableDeclaratorsContext.class);
if (variableDeclaratorsContext != null) {
constDeclaration.setVariableDeclarations(
getAdapter(VariableDeclaratorsAdapter.class).adapt(variableDeclaratorsContext,
constDeclaration.getType(), baseTypeContext));
}
return constDeclaration;
}