There is no way in Alloy to access views directly by using their class except by iterating over all possible views on the screen and checking their className
value.
If all your views with class="top30"
are children of the same view you can try using Titanium.UI.View.children property:
var i, view
for (i in $.main.children) {
view = $.main.children[i];
if (view.className === 'top30') {
/* Do your operation here */
}
}