A criminal code consolidates existing statute law and incorporates into it the common law as laid down in judicial decisions. The code may be a complete body of law that purports to replace entirely the preexisting law or it may be partial to the extent that certain pre-existing rules remain.