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

Method getPublicConstructors

src/bsh/util/ClassBrowser.java:148–157  ·  view source on GitHub ↗
( Constructor [] constructors )

Source from the content-addressed store, hash-verified

146 }
147
148 Constructor [] getPublicConstructors( Constructor [] constructors ) {
149 Vector v = new Vector();
150 for(int i=0; i< constructors.length; i++)
151 if ( Modifier.isPublic(constructors[i].getModifiers()) )
152 v.addElement( constructors[i] );
153
154 Constructor [] ca = new Constructor [ v.size() ];
155 v.copyInto( ca );
156 return ca;
157 }
158
159 Method [] getPublicMethods( Method [] methods ) {
160 Vector v = new Vector();

Callers 1

setConslistMethod · 0.95

Calls 3

isPublicMethod · 0.80
getModifiersMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected