Examples of visit()


Examples of org.apache.activemq.command.Command.visit()

     */
    public void onCommand(final Object o) {
        final Command command = (Command)o;
        if (!closed.get() && command != null) {
            try {
                command.visit(new CommandVisitorAdapter() {
                    @Override
                    public Response processMessageDispatch(MessageDispatch md) throws Exception {
                        ActiveMQDispatcher dispatcher = dispatchers.get(md.getConsumerId());
                        if (dispatcher != null) {
                            // Copy in case a embedded broker is dispatching via
View Full Code Here

Examples of org.apache.activemq.command.RemoveInfo.visit()

                            public void run() {
                                try {
                                    RemoveInfo removeCommand = subToClose.getConsumerInfo().createRemoveCommand();
                                    if (connection instanceof CommandVisitor) {
                                        // avoid service exception handling and logging
                                        removeCommand.visit((CommandVisitor) connection);
                                    } else {
                                        connection.service(removeCommand);
                                    }
                                } catch (IllegalStateException ignoredAsRemoteHasDoneTheJob) {
                                } catch (Exception e) {
View Full Code Here

Examples of org.apache.axis2.corba.idl.parser.IDLVisitor.visit()

            AST idlTree = parser.getAST();

            // new DumpASTVisitor().visit(idlTree); // print the AST structure

            IDLVisitor visitor = new IDLVisitor();
            visitor.visit(idlTree);
            idl = visitor.getIDL();
        } catch (Exception ex) {
            throw new IDLProcessorException(ex.getMessage(), ex);
        }
        return idl;
View Full Code Here

Examples of org.apache.bcel.classfile.DescendingVisitor.visit()

   * @see #constant_pool_entries_satisfy_static_constraints()
   */
  private void field_and_method_refs_are_valid(){
    JavaClass jc = Repository.lookupClass(myOwner.getClassName());
    DescendingVisitor v = new DescendingVisitor(jc, new FAMRAV_Visitor(jc));
    v.visit();
  }

  /**
   * A Visitor class that ensures the ConstantCP-subclassed entries
   * of the constant pool are valid.
View Full Code Here

Examples of org.apache.cayenne.ejbql.EJBQLExpression.visit()

                context.append(" WHERE");
                context.popMarker();

                context.pushMarker(context.makeEntityQualifierMarker(), false);

                ejbqlQualifier.visit(context
                        .getTranslatorFactory()
                        .getConditionTranslator(context));

                context.popMarker();
            }
View Full Code Here

Examples of org.apache.cayenne.ejbql.parser.EJBQLEquals.visit()

        EJBQLEquals equals = new EJBQLEquals(-1);
        EJBQLIdentificationVariable identifier = new EJBQLIdentificationVariable(-1);
        identifier.setText(subqueryId);
        equals.jjtAddChild(identifier, 0);
        equals.jjtAddChild((Node) expression.getChild(0), 1);
        equals.visit(this);

        context.append(")");

        return false;
    }
View Full Code Here

Examples of org.apache.cayenne.ejbql.parser.Node.visit()

            context.pushMarker("@processParameter", true);

            EJBQLPathAnaliserTranslator translator = new EJBQLPathAnaliserTranslator(
                    context);
            parent.visit(translator);
            translator.visitPath(parent, parent.getChildrenCount());

            String id = translator.idPath;
            if (id != null) {
View Full Code Here

Examples of org.apache.cayenne.property.ArcProperty.visit()

            final Persistent sourceObject,
            final Persistent targetObject) {

        ArcProperty reverseArc = property.getComplimentaryReverseArc();
        if (reverseArc != null) {
            reverseArc.visit(new PropertyVisitor() {

                public boolean visitCollectionArc(CollectionProperty property) {
                    property.addTarget(targetObject, sourceObject, false);
                    return false;
                }
View Full Code Here

Examples of org.apache.cayenne.reflect.ArcProperty.visit()

            final Persistent sourceObject,
            final Persistent targetObject) {

        ArcProperty reverseArc = property.getComplimentaryReverseArc();
        if (reverseArc != null) {
            reverseArc.visit(new PropertyVisitor() {

                public boolean visitToMany(ToManyProperty property) {
                    property.addTarget(targetObject, sourceObject, false);
                    return false;
                }
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.visit()

                ((ObjectId) nodeId).getEntityName());
        Property property = descriptor.getProperty(arcId.toString());

        setExternalChange(Boolean.TRUE);
        try {
            property.visit(new PropertyVisitor() {

                public boolean visitAttribute(AttributeProperty property) {
                    return false;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.