54 lines
1.2 KiB
Java
54 lines
1.2 KiB
Java
/******************************************************************************
|
|
* Copyright (c) 2002 - 2014 IBM Corporation.
|
|
* 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 com.ibm.wala.cast.ir.translator;
|
|
|
|
import java.util.Collection;
|
|
|
|
import com.ibm.wala.cast.tree.CAstQualifier;
|
|
import com.ibm.wala.cast.tree.CAstType;
|
|
|
|
public abstract class AbstractClassEntity extends AbstractDataEntity {
|
|
private final CAstType.Class type;
|
|
|
|
public AbstractClassEntity(CAstType.Class type) {
|
|
this.type = type;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "class " + type.getName();
|
|
}
|
|
|
|
@Override
|
|
public int getKind() {
|
|
return TYPE_ENTITY;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return type.getName();
|
|
}
|
|
|
|
@Override
|
|
public CAstType getType() {
|
|
return type;
|
|
}
|
|
|
|
@Override
|
|
public Collection<CAstQualifier> getQualifiers() {
|
|
return type.getQualifiers();
|
|
}
|
|
}
|