1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2025-08-16 23:31:48 +02:00
Files
CodeStatistics
CodeStatisticsCore
CodeStatisticsTests
LanguageJava
Elements
Annotation.cs
Field.cs
FlowStatement.cs
Import.cs
Member.cs
Method.cs
Modifiers.cs
Primitives.cs
Type.cs
TypeIdentifier.cs
TypeOf.cs
Handling
Properties
Utils
JavaHandler.cs
LanguageJava.csproj
.gitignore
CodeStatistics.sln
README.md

30 lines
795 B
C#

namespace LanguageJava.Elements{
public struct Annotation{
public static bool operator ==(Annotation obj1, Annotation obj2){
return obj1.Equals(obj2);
}
public static bool operator !=(Annotation obj1, Annotation obj2){
return !obj1.Equals(obj2);
}
public readonly string SimpleName;
public Annotation(string simpleName){
this.SimpleName = simpleName;
}
public override bool Equals(object obj){
return obj is Annotation && SimpleName == ((Annotation)obj).SimpleName;
}
public override int GetHashCode(){
return SimpleName.GetHashCode();
}
public override string ToString(){
return '@'+SimpleName;
}
}
}