Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.google.code.joto.procesors;
 
 
 
public class NumberProcessor
    implements CustomProcessor
    public boolean canProcessThisObject objectToProcess )
    {
        return objectToProcess instanceof Number;
    }
    public void processThisObject objectToProcessReverseEngineerData sharedDataint depthLevel,
                             ProcessMoreCallback callback )
        throws Exception
    {
        if ( objectToProcess instanceof BigDecimal )
        {
            BigDecimal bigDecimalToProcess = (BigDecimalobjectToProcess;
            sharedData.concat"new BigDecimal( \""bigDecimalToProcess.toString(), "\" )" );
        }
        else if ( objectToProcess instanceof BigInteger )
        {
            BigInteger bigIntegerToProcess = (BigIntegerobjectToProcess;
            sharedData.concat"new BigInteger( \""bigIntegerToProcess.toString(), "\" )" );
        }
        else
        {
            sharedData.concat( String.valueOfobjectToProcess ) );
        }
    }
New to GrepCode? Check out our FAQ X