Geoserver source code: Where do the methods in classProperties.java come from [migrat

المشرف العام

Administrator
طاقم الإدارة
I try to understand the geoserver source code and therefore play around with it. For my task I want to find out where I can find the "methods" stated in the code below from the ClassProperties.java class in the org.geoserver.ows.util package. When printing the methods.getname() out I get this response:

List item
indexOf
indexOf
isFrozen
getMap
map
getCapabilities
getStyles
getLegendGraphic
capabilities


Although clazz.getMethods() gets these methods I can't find them in the code. where does Class clazz.getMethods() get them from?

ClassProperties.java

/* (c) 2014 Open Source Geospatial Foundation - all rights reserved * (c) 2001 - 2013 OpenPlans * This code is licensed under the GPL 2.0 license, available at the root * application directory. */package org.geoserver.ows.util;import java.lang.reflect.Method;import java.util.ArrayList;import java.util.Arrays;import java.util.HashSet;import java.util.List;import java.util.Set;/** * Provides lookup information about java bean properties in a class. * * @author Justin Deoliveira, OpenGEO * @author Andrea Aime, OpenGEO * */public class ClassProperties { private static final List EMPTY = new ArrayList(0); private static final Set COMMON_DERIVED_PROPERTIES = new HashSet( Arrays.asList("prefixedName")); List methods; List getters; List setters; public ClassProperties(Class clazz) { methods = Arrays.asList(clazz.getMethods());

أكثر...
 
أعلى