Package nexj.core.util

Examples of nexj.core.util.ExceptionHolder


         }

         nEnd = nNewEnd;
      }

      ExceptionHolder eh = null;

      if (predCountMap.size() != 0)
      {
         for (Iterator itr = predCountMap.iterator(); itr.hasNext();)
         {
View Full Code Here


    * @param aspects The topologically sorted aspect array (from resolveAspects())
    * @throws MetadataException if an error occurs.
    */
   public static void resolveMembers(ClassAspect[] aspects) throws MetadataException
   {
      ExceptionHolder eh = null;

      for (int i = 0; i < aspects.length; ++i)
      {
         eh = aspects[i].resolveAspectMembers(eh);
      }
View Full Code Here

    * @param aspects The topologically sorted aspect array (from resolveAspects())
    * @throws MetadataException if an error occurs.
    */
   public static void resolvePersistence(ClassAspect[] aspects) throws MetadataException
   {
      ExceptionHolder eh = null;

      for (int i = 0; i < aspects.length; ++i)
      {
         ClassAspect aspect = aspects[i];

View Full Code Here

      for (Iterator itr = compatible.getMetaclassIterator(); itr.hasNext();)
      {
         final Metaclass compatibleMetaclass = (Metaclass)itr.next();
         Metaclass metaclass = findMetaclass(compatibleMetaclass.getName());

         ExceptionHolder eh;

         if (metaclass != null)
         {
            eh = new ExceptionHolder()
            {
               public void addException(Throwable e)
               {
                  if (e instanceof MetadataValidationException)
                  {
View Full Code Here

    * events and actions for this class and its subclasses.
    * @throws MetadataException if inconsistencies are found.
    */
   public final void resolveInheritance()
   {
      ExceptionHolder eh = resolveInheritance(null);

      if (eh != null)
      {
         throw (UncheckedException)eh;
      }
View Full Code Here

    * @param machine The VM for macro expansion.
    * @throws MetadataException if an error occurs.
    */
   public void resolveAttributes(final Machine machine)
   {
      ExceptionHolder eh = visit(new AttributeDependencyVisitor()
      {
         protected void computeDependency(Attribute attribute)
         {
            attribute.resolve(machine);
         }
View Full Code Here

    * @throws MetadataException if an error occurs.
    * @see Attribute#computeInverseDependency(Holder)
    */
   public void computeInverseDependency(final Set depSet)
   {
      ExceptionHolder eh = visit(new AttributeDependencyVisitor()
      {
         protected void computeDependency(Attribute attribute)
         {
            attribute.computeInverseDependency(depSet);
         }
View Full Code Here

    */
   public final void compile(Machine machine)
   {
      Metaclass sysSyncClass = ((Metadata)machine.getContext().getContextMetadata())
         .findMetaclass(Metadata.SYNC_CLASS_CLASS_NAME);
      ExceptionHolder eh = (sysSyncClass == null) ? null : generateSyncDependencyActions(sysSyncClass, null);

      eh = compile(machine, eh);

      if (eh != null)
      {
View Full Code Here

TOP

Related Classes of nexj.core.util.ExceptionHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.