MCPcopy Create free account
hub / github.com/beanshell/beanshell / getPublicMethods

Method getPublicMethods

src/bsh/util/ClassBrowser.java:159–168  ·  view source on GitHub ↗
( Method [] methods )

Source from the content-addressed store, hash-verified

157 }
158
159 Method [] getPublicMethods( Method [] methods ) {
160 Vector v = new Vector();
161 for(int i=0; i< methods.length; i++)
162 if ( Modifier.isPublic(methods[i].getModifiers()) )
163 v.addElement( methods[i] );
164
165 Method [] ma = new Method [ v.size() ];
166 v.copyInto( ma );
167 return ma;
168 }
169
170 Field[] getPublicFields( Field [] fields ) {
171 Vector v = new Vector();

Callers 1

setMlistMethod · 0.95

Calls 3

isPublicMethod · 0.80
getModifiersMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected