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

Method getPublicFields

src/bsh/util/ClassBrowser.java:170–179  ·  view source on GitHub ↗
( Field [] fields )

Source from the content-addressed store, hash-verified

168 }
169
170 Field[] getPublicFields( Field [] fields ) {
171 Vector v = new Vector();
172 for(int i=0; i< fields.length; i++)
173 if ( Modifier.isPublic(fields[i].getModifiers()) )
174 v.addElement( fields[i] );
175
176 Field [] fa = new Field [ v.size() ];
177 v.copyInto( fa );
178 return fa;
179 }
180
181 void setConslist( Class clas ) {
182 if ( clas == null ) {

Callers 1

setFieldListMethod · 0.95

Calls 3

isPublicMethod · 0.80
getModifiersMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected