Class CustomAnnotationRegistry.AnnotationWriter
- java.lang.Object
-
- com.mrivanplays.annotationconfig.core.CustomAnnotationRegistry.AnnotationWriter
-
- Enclosing class:
- CustomAnnotationRegistry
public static final class CustomAnnotationRegistry.AnnotationWriter extends Object
Represents a wrapped writer.The reason behind why we don't use java's writer is because different file formats have different ways of writing things, and so we want to make advantage of that.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomAnnotationRegistry.AnnotationWriter.WriteFunction
-
Constructor Summary
Constructors Constructor Description AnnotationWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidappend(char c)Appends the typed character.Map<CustomAnnotationRegistry.AnnotationWriter.WriteFunction,Object>toWrite()Deprecated.internal use onlyvoidwrite(char c)Writes a single character.voidwrite(char[] chars)Writes a character array.voidwrite(Object obj)Writes a object.voidwrite(String s)Writes a string.
-
-
-
Constructor Detail
-
AnnotationWriter
public AnnotationWriter()
-
-
Method Detail
-
toWrite
@Deprecated public Map<CustomAnnotationRegistry.AnnotationWriter.WriteFunction,Object> toWrite()
Deprecated.internal use only
-
write
public void write(char[] chars)
Writes a character array. This will probably be converted to string upon writing.- Parameters:
chars- character array
-
write
public void write(char c)
Writes a single character.- Parameters:
c- character
-
append
public void append(char c)
Appends the typed character.- Parameters:
c- character
-
-