
com.github.croesch.micro_debug.argument.WrongParameterNumberArgument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-debug Show documentation
Show all versions of micro-debug Show documentation
A debugger for (micro-)assembler-programs for the Mic-1.
The newest version!
/*
* Copyright (C) 2011-2012 Christian Roesch
*
* This file is part of micro-debug.
*
* micro-debug is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* micro-debug is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with micro-debug. If not, see .
*/
package com.github.croesch.micro_debug.argument;
import com.github.croesch.micro_debug.annotation.NotNull;
import com.github.croesch.micro_debug.i18n.Text;
/**
* argument that signalizes an argument with the wrong number of parameters
*
* @author croesch
* @since Date: Feb 28, 2012
*/
public final class WrongParameterNumberArgument extends AError {
/**
* Hide constructor from being invoked.
*
* @since Date: Feb 28, 2012
*/
private WrongParameterNumberArgument() {
// hidden constructor
}
/**
* Class that holds the singleton of this argument.
*
* @author croesch
* @since Date: Feb 28, 2012
*/
private static class LazyHolder {
/** the single instance of the argument */
private static final WrongParameterNumberArgument INSTANCE = new WrongParameterNumberArgument();
}
/**
* The singleton instance of this argument.
*
* @since Date: Feb 28, 2012
* @return the single instance of this argument.
*/
@NotNull
public static WrongParameterNumberArgument getInstance() {
return LazyHolder.INSTANCE;
}
@Override
@NotNull
protected Text getErrorText() {
return Text.ARGUMENT_WITH_WRONG_PARAM_NUMBER;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy