Package org.gocha.collection

Examples of org.gocha.collection.NodesExtracter


     * @return интерфейс доступа к методам класса
     */
    public static NodesExtracter classMethodsExtracter()
    {
        if( classMethodsExtracter!=null )return classMethodsExtracter;
        classMethodsExtracter = new NodesExtracter() {
            @Override
            public Iterable extract(Object from)
            {
                if( from==null )return null;
                if( !(from instanceof Class) )return null;
View Full Code Here


     * @return интерфейс доступа к типам параметров метода
     */
    public static NodesExtracter methodParametersExtracter()
    {
        if( methodParametersExtracter!=null )return methodParametersExtracter;
        methodParametersExtracter = new NodesExtracter() {
            @Override
            public Iterable extract(Object from)
            {
                if( from==null )return null;
                if( !(from instanceof Method) ) {
View Full Code Here

     * @return интерфейс доступа к методам класса
     */
    public static NodesExtracter classMethodsExtracter()
    {
        if( classMethodsExtracter!=null )return classMethodsExtracter;
        classMethodsExtracter = new NodesExtracter() {
            @Override
            public Iterable extract(Object from)
            {
                if( from==null )return null;
                if( !(from instanceof Class) )return null;
View Full Code Here

     * @return интерфейс доступа к типам параметров метода
     */
    public static NodesExtracter methodParametersExtracter()
    {
        if( methodParametersExtracter!=null )return methodParametersExtracter;
        methodParametersExtracter = new NodesExtracter() {
            @Override
            public Iterable extract(Object from)
            {
                if( from==null )return null;
                if( !(from instanceof Method) ) {
View Full Code Here

    @Override
    public Iterable extract(Object from)
    {
        if( from==null )
        {
            NodesExtracter next = getNextExtracter();
            if( next!=null )return nextExtracter.extract(from);
            return getDefaultIterable();
        }

        Class cls = from.getClass();
        Map<Class, NodesExtracter> map = getExtractersMap();
        if( map.containsKey(cls) )
        {
            NodesExtracter ext = map.get(cls);
            if( ext==null )
            {
                NodesExtracter next = getNextExtracter();
                if( next!=null )return nextExtracter.extract(from);
                return getDefaultIterable();
            }
            return ext.extract(from);
        }

        NodesExtracter next = getNextExtracter();
        if( next!=null )return nextExtracter.extract(from);
        return getDefaultIterable();
    }
View Full Code Here

TOP

Related Classes of org.gocha.collection.NodesExtracter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.