blob: 9a2dc0a3603dc269d850b6a74e27acbb6d7ba4ea [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.env;
public class AccessRestriction {
private AccessRule accessRule;
private String messageTemplate;
public AccessRestriction(AccessRule accessRule, String messageTemplate) {
this.accessRule = accessRule;
this.messageTemplate = messageTemplate;
}
/**
* Returns readable description for problem reporting,
* message is expected to contain room for restricted type name
* e.g. "{0} has restricted access"
*/
public String getMessageTemplate() {
return this.messageTemplate;
}
public int getProblemId() {
return this.accessRule.problemId;
}
}