blob: c7ecaa2a7f7f2a2ace3e3c0411fbaf9c59bf447e [file] [log] [blame]
/* $Id$
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.etch.compiler.ast;
/**
* An implementation of tree walker that does nothing. Useful for
* instances where you want to look at a few things during a tree
* walk but don't want to look at everything.
*/
public class AbstractTreeWalker implements TreeWalker
{
public void doExtern( Extern extern )
{
// ignore.
}
public void doItem( Item item )
{
// ignore.
}
public void doMixin( Mixin mixin )
{
// ignore.
}
public void doThrown( Thrown thrown )
{
// ignore.
}
public void doTypeRef( TypeRef ref )
{
// ignore.
}
public void postConstant( Constant constant )
{
// ignore.
}
public void postEnum( Enumx enumx )
{
// ignore.
}
public void postExcept( Except except )
{
// ignore.
}
public void postMessage( Message message )
{
// ignore.
}
public void postModule( Module module )
{
// ignore.
}
public void postParameter( Parameter parameter )
{
// ignore.
}
public void postService( Service service )
{
// ignore.
}
public void postStruct( Struct struct )
{
// ignore.
}
public void preConstant( Constant constant )
{
// ignore.
}
public void preEnum( Enumx enumx )
{
// ignore.
}
public void preExcept( Except except )
{
// ignore.
}
public void preMessage( Message message )
{
// ignore.
}
public void preModule( Module module )
{
// ignore.
}
public void preParameter( Parameter parameter )
{
// ignore.
}
public void preService( Service service )
{
// ignore.
}
public void preStruct( Struct struct )
{
// ignore.
}
}