Here you can find the source of removePointerFromDesc(String[] desc)
static private String[] removePointerFromDesc(String[] desc)
//package com.java2s; /******************************************************************************* * Copyright (c) 2014, 2016 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ import java.util.ArrayList; public class Main { static private String[] removePointerFromDesc(String[] desc) { ArrayList<String> tmp = new ArrayList<String>(); for (String s : desc) { if (!isPointerType(s.split(":")[1])) { tmp.add(s);// ww w . j av a 2 s .c o m } } return tmp.toArray(new String[0]); } static public boolean isPointerType(String type) { return type.equals("Pointer"); } }