Examples of AbstractVisitor


Examples of org.eclipse.ocl.utilities.AbstractVisitor

      final Object extentContext = context;
      queryToInit.getExtentMap().clear();
      if (queryToInit.queryText() != null
          && queryToInit.queryText().indexOf(
              PredefinedType.ALL_INSTANCES_NAME) >= 0) {
        AbstractVisitor visitior = new AbstractVisitor() {

          private boolean usesAllInstances = false;

          public Object visitOperationCallExp(OperationCallExp oc) {
            if (!usesAllInstances) {
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.visitor.AbstractVisitor

    }
    if (!ast.getSourceModule().getScriptProject().isOnBuildpath(
        ast.getSourceModule())) {
      return;
    }
    ast.accept(new AbstractVisitor() {
      /*
       * @see
       * org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core
       * .dom.MethodDeclaration)
       */
 
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.visitor.AbstractVisitor

      FunctionDeclaration functionDeclaration = (FunctionDeclaration) elementAt;
      resolvedBinding = functionDeclaration.resolveFunctionBinding();
      formalParameters = functionDeclaration.formalParameters();
    }
    final List<String> exceptions = new ArrayList<String>();
    elementAt.accept(new AbstractVisitor() {
      public boolean visit(ThrowStatement throwStatement) {
        Expression expression = throwStatement.getExpression();
        if (expression instanceof ClassInstanceCreation) {
          ClassInstanceCreation cic = (ClassInstanceCreation) throwStatement
              .getExpression();
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.visitor.AbstractVisitor

   * @param node
   * @return the aggregated strings for a given node
   */
  public static String getScalars(ASTNode node) {
    final StringBuilder builder = new StringBuilder();
    node.accept(new AbstractVisitor() {

      @Override
      public boolean visit(Scalar scalar) {
        builder.append(scalar.getStringValue());
        return true;
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.visitor.AbstractVisitor

    // Init scanner and start ranges computing
    this.scanner = sc;
    // TODO : this.scanner.tokenizeWhiteSpace = true;

    // Start unit visit
    AbstractVisitor commentVisitor = new CommentMapperVisitor();
    unit.accept(commentVisitor);

    // Reduce leading arrays if necessary
    int leadingCount = this.leadingPtr + 1;
    if (leadingCount > 0 && leadingCount < this.leadingIndexes.length) {
View Full Code Here

Examples of org.jboss.cache.commands.AbstractVisitor

   /**
    * Replaces the global transaction in a VisitableCommand with a new global transaction passed in.
    */
   private VisitableCommand replaceGtx(VisitableCommand command, final GlobalTransaction gtx) throws Throwable
   {
      command.acceptVisitor(null, new AbstractVisitor()
      {
         @Override
         public Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
         {
            command.setGlobalTransaction(gtx);
View Full Code Here

Examples of org.jboss.cache.commands.AbstractVisitor

   /**
    * Replaces the global transaction in a VisitableCommand with a new global transaction passed in.
    */
   private VisitableCommand replaceGtx(VisitableCommand command, final GlobalTransaction gtx) throws Throwable
   {
      command.acceptVisitor(null, new AbstractVisitor()
      {
         @Override
         public Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
         {
            command.setGlobalTransaction(gtx);
View Full Code Here

Examples of org.jboss.cache.commands.AbstractVisitor

   /**
    * Replaces the global transaction in a VisitableCommand with a new global transaction passed in.
    */
   private VisitableCommand replaceGtx(VisitableCommand command, final GlobalTransaction gtx) throws Throwable
   {
      command.acceptVisitor(null, new AbstractVisitor()
      {
         @Override
         public Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
         {
            command.setGlobalTransaction(gtx);
View Full Code Here

Examples of org.jboss.cache.commands.AbstractVisitor

   /**
    * Replaces the global transaction in a VisitableCommand with a new global transaction passed in.
    */
   private VisitableCommand replaceGtx(VisitableCommand command, final GlobalTransaction gtx) throws Throwable {
      command.acceptVisitor(null, new AbstractVisitor() {
         @Override
         public Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable {
            command.setGlobalTransaction(gtx);
            return null;
         }
View Full Code Here

Examples of org.jboss.dna.graph.query.model.Visitors.AbstractVisitor

     */
    public static Set<Column> getColumnsReferencedBy( Visitable visitable ) {
        if (visitable == null) return Collections.emptySet();
        final Set<Column> symbols = new HashSet<Column>();
        // Walk the entire structure, so only supply a StrategyVisitor (that does no navigation) ...
        Visitors.visitAll(visitable, new AbstractVisitor() {
            protected void addColumnFor( SelectorName selectorName,
                                         String property ) {
                symbols.add(new Column(selectorName, property, property));
            }

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.