Interface CtNewClass<T>

Type Parameters:
T - created type
All Superinterfaces:
Cloneable, CtAbstractInvocation<T>, CtActualTypeContainer, CtCodeElement, CtConstructorCall<T>, CtElement, CtExpression<T>, CtQueryable, CtStatement, CtTargetedExpression<T,​CtExpression<?>>, CtTypedElement<T>, CtVisitable, FactoryAccessor, Serializable, SourcePositionHolder, TemplateParameter<T>
All Known Implementing Classes:
CtNewClassImpl

public interface CtNewClass<T> extends CtConstructorCall<T>
This code element represents the creation of a anonymous class. Example:
    // an anonymous class creation
    Runnable r = new Runnable() {
        @Override
        public void run() {
          System.out.println("foo");
        }
    };