Class ReplaceToken
java.lang.Object
io.github.douira.glsl_transformer.ast.print.token.PrintToken
io.github.douira.glsl_transformer.ast.print.token.ReplaceToken
-
Constructor Summary
ConstructorsConstructorDescriptionReplaceToken(PrintToken replacement, String match, Function<ASTNode, Boolean> condition) ReplaceToken(PrintToken replacement, Function<PrintToken, Boolean> condition) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplaceTokenfromMatch(PrintToken replacement, String match) static ReplaceTokenfromMatchAndNodeCondition(PrintToken replacement, String match, Function<ASTNode, Boolean> condition) static ReplaceTokenfromNodeCondition(PrintToken replacement, Function<ASTNode, Boolean> condition) voidreplace(PrintToken other, ASTPrinterBase printer) Methods inherited from class io.github.douira.glsl_transformer.ast.print.token.PrintToken
getChannel, getRole, getSource, setSource
-
Constructor Details
-
ReplaceToken
-
ReplaceToken
-
-
Method Details
-
getContent
- Specified by:
getContentin classPrintToken
-
replace
-
fromMatch
-
fromNodeCondition
public static ReplaceToken fromNodeCondition(PrintToken replacement, Function<ASTNode, Boolean> condition) -
fromMatchAndNodeCondition
public static ReplaceToken fromMatchAndNodeCondition(PrintToken replacement, String match, Function<ASTNode, Boolean> condition)
-