1 package com.j2biz.pencil.test.scenario.classFunctions; 2 3 import com.j2biz.log.LOG; 4 import com.j2biz.pencil.test.additional.TestLog; 5 6 public class ClassNameFunctionScene { 7 8 static { 9 LOG.debug("ClassNameFunctionScene.<clinit>() = ${class}"); 10 LOG.debug("ClassNameFunctionScene.<clinit>().full = ${class.name}"); 11 12 { 13 LOG.debug("ClassNameFunctionScene.<clinit>().local = ${class}"); 14 LOG.debug("ClassNameFunctionScene.<clinit>().full.local = ${class.name}"); 15 } 16 } 17 18 { 19 LOG.debug("ClassNameFunctionScene.<init>() = ${class}"); 20 LOG.debug("ClassNameFunctionScene.<init>().full = ${class.name}"); 21 22 { 23 LOG.debug("ClassNameFunctionScene.<init>().local = ${class}"); 24 LOG.debug("ClassNameFunctionScene.<init>().full.local = ${class.name}"); 25 } 26 } 27 28 public static void main( String [] args ) { 29 LOG.debug("ClassNameFunctionScene.main() = ${class}"); 30 LOG.debug("ClassNameFunctionScene.main().full = ${class.name}"); 31 32 new ClassNameFunctionScene().nonStaticMethod(); 33 34 class EmbeddedClass { 35 { 36 LOG.debug("ClassNameFunctionScene.EmbeddedClass.<init>() = ${class}"); 37 LOG 38 .debug("ClassNameFunctionScene.EmbeddedClass.<init>().full = ${class.name}"); 39 40 { 41 LOG.debug("ClassNameFunctionScene.EmbeddedClass.<init>().local = ${class}"); 42 LOG 43 .debug("ClassNameFunctionScene.EmbeddedClass.<init>().full.local = ${class.name}"); 44 } 45 } 46 } 47 48 new EmbeddedClass(); 49 } 50 51 protected final void nonStaticMethod() { 52 LOG.debug("ClassNameFunctionScene.nonStaticMethod() = ${class}"); 53 LOG.debug("ClassNameFunctionScene.nonStaticMethod().full = ${class.name}"); 54 55 { 56 LOG.debug("ClassNameFunctionScene.nonStaticMethod().local = ${class}"); 57 LOG.debug("ClassNameFunctionScene.nonStaticMethod().full.local = ${class.name}"); 58 } 59 } 60 } 61 | Popular Tags |