Takes ClassContext and checks that each property belongs to the given view.
@param \Represent\Context\ClassContext $classContext
@return ClassContext
10471
private function handleView(ClassContext $classContext)
    {
        $properties = $classContext->properties;
        $reader     = $this->annotationReader;

        $classContext->properties = array_filter(
            $properties,
            function ($property) use ($reader, $classContext) {
                $annotation = $reader->getPropertyAnnotation($property,'\Represent\Annotations\View');

                return $annotation == null || in_array($classContext->views, $annotation->name);
            }
        );

        return $classContext;
    }
173985
private function generatePropertiesForBlackList(\ReflectionClass $reflection, ClassContext $classContext)
    {
        $properties = $reflection->getProperties();
        $reader     = $this->annotationReader;

        array_walk(
            $properties,
            function ($property) use ($classContext, $reader) {
                $annotation = $reader->getPropertyAnnotation($property, '\Represent\Annotations\Show');
                if ($annotation) {
                    $classContext->properties[] = $property;
                }
            }
        );

        return $classContext;
    }
1170185
@Override
    public void visitClassContext(ClassContext classContext) {
        try {
            ifBlocks = new ArrayList<>();
            loadedRegs = new HashMap<>();
            loopLocations = new BitSet();
            stack = new OpcodeStack();
            super.visitClassContext(classContext);
        } finally {
            ifBlocks = null;
            loadedRegs = null;
            loopLocations = null;
            stack = null;
        }
    }
134988
public function getContext(ModelContextInterface $context = null)
    {
        $context = new ModelContext($context);
        $context->setState($this->getState());
        $context->setIdentityKey($this->_identity_key);

        return $context;
    }
569924
@Override
    public void visitClassContext(ClassContext classContext) {

        try {
            if ((collectionClass == null) || (mapClass == null)) {
                return;
            }
            stack = new OpcodeStack();
            fieldUserValues = new HashMap<>();
            classContext.getJavaClass().accept(this);
        } finally {
            fieldUserValues = null;
            stack = null;
        }
    }
393654
public function render($context)
    {
        if (count($this->class) > 0) {
            foreach ($this->class as $class) {
                $this->getRow()->addClass($class);
            }
        }
        return $context;
    }
867059
private function getViewContext(array $context, ?string $viewContext = null): string
    {
        return $viewContext ?? $context['view_context'] ?? ViewInterface::CONTEXT_DEFAULT;
    }
38057
public function getContextObject() {
		if ($this->contextObj) {
			return $this->contextObj;
		}
		return $this->contextObj = $this->getContextObjectWithIDAndClass($this->getContextID(), $this->getContextType());
	}
432320
@Override
    public void visitClassContext(ClassContext classContext) {
        try {
            guiInterfaces = new HashSet<>();
            JavaClass cls = classContext.getJavaClass();
            JavaClass[] infs = cls.getAllInterfaces();
            for (JavaClass inf : infs) {
                String name = inf.getClassName();
                if ((name.startsWith("java.awt.") || name.startsWith("javax.swing.")) && name.endsWith("Listener")) {
                    guiInterfaces.add(inf);
                }
            }

            if (!guiInterfaces.isEmpty()) {
                listenerCode = new LinkedHashMap<>();
                expensiveThisCalls = new HashSet<>();
                super.visitClassContext(classContext);
            }
        } catch (ClassNotFoundException cnfe) {
            bugReporter.reportMissingClass(cnfe);
        } finally {
            guiInterfaces = null;
            listenerCode = null;
            expensiveThisCalls = null;
        }
    }
144845
public function initializeContext(Context $context)
    {
        if ($context instanceof ResourceContext) {
            $reflector = new ReflectionClass(get_class($context));

            if ($this->builder->getLoader() instanceof FileResourceLoader) {
                if ($this->builder->getLoader()->getBasePath() == null) {
                    $this->builder->getLoader()->setBasePath(dirname($reflector->getFileName()));
                }
            }

            if ($context->getResourceFactory()) {
                $this->builder->setFactory($context->getResourceFactory());
            }

            $context->setResourceBuilder($this->builder);
        }
    }
353278
@Override
    public void visitClassContext(ClassContext classContext) {
        try {
            JavaClass cls = classContext.getJavaClass();
            if (cls.getMajor() >= Const.MAJOR_1_5) {
                stack = new OpcodeStack();
                checkedFields = new HashSet<>();
                enumRegs = new HashMap<>();
                enumFields = new HashMap<>();
                super.visitClassContext(classContext);
            }
        } finally {
            stack = null;
            checkedFields = null;
            enumRegs = null;
            enumFields = null;
        }
    }
21050
@Override
    public void visitClassContext(ClassContext classContext) {
        try {
            if ((throwableClass != null) && !isPre14Class(classContext.getJavaClass())) {
                stack = new OpcodeStack();
                catchInfos = new HashSet<>();
                exReg = new HashMap<>();
                super.visitClassContext(classContext);
            }
        } finally {
            stack = null;
            catchInfos = null;
            exceptions = null;
            exReg = null;
        }
    }
1226306
@Override
    public void visitClassContext(ClassContext classContext) {
        try {
            currentClass = classContext.getJavaClass();
            stack = new OpcodeStack();
            returnTypes = new HashMap<>();
            super.visitClassContext(classContext);
        } finally {
            currentClass = null;
            stack = null;
            returnTypes = null;
        }
    }
849421
@Override
    public void visitClassContext(ClassContext classContext) {
        try {
            ifStatements = new HashSet<>();
            super.visitClassContext(classContext);
        } finally {
            ifStatements = null;
        }
    }
598277
@Override
    public void visitClassContext(ClassContext classContext) {
        JavaClass cls = classContext.getJavaClass();
        clsVersion = cls.getMajor();
        super.visitClassContext(classContext);
    }
977144
public function context(Context $context = null) : Context
    {
        if (!$this->context) {
            $this->context = $context ?: new SimpleContext;
        }

        return $this->context;
    }
710005
@Override
    public void visitClassContext(ClassContext classContext) {
        try {
            stack = new OpcodeStack();
            registerConstants = new HashMap<>();
            overloadedMethods = collectOverloadedMethods(classContext.getJavaClass());
            super.visitClassContext(classContext);
        } finally {
            stack = null;
            registerConstants = null;
            overloadedMethods = null;
        }
    }