| Constructor and Description |
|---|
InlineResourceMacro() |
| Modifier and Type | Method and Description |
|---|---|
Object |
eval(LocalRenderContext ctx,
Expression[] args)
Evaluates the macro at runtime.
|
String |
getDescription()
Provides a short description of what the macro does for documentation purposes.
|
String |
getName() |
Class<?> |
getType()
Returns the type of objects returned by this macro.
|
boolean |
isConstant(Expression[] args)
Determines if the macro is "constant" for the given parameter expressions.
|
void |
verifyArguments(List<Expression> args)
Verifies the arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdereferencepublic Class<?> getType()
Macropublic void verifyArguments(List<Expression> args)
Macro
This is used to verify the type and count of arguments at compile time. If one or more arguments are invalid an
IllegalArgumentException can be thrown.
verifyArguments in interface Macroargs - the expressions which will be passed in at runtime.public Object eval(LocalRenderContext ctx, Expression[] args)
MacroNote that the arguments are still expressions and have to be evaluated on demand.
public boolean isConstant(Expression[] args)
MacroisConstant in interface Macroargs - the arguments of the macro@Nonnull public String getName()
getName in interface sirius.kernel.di.std.Namedpublic String getDescription()
MacrogetDescription in interface MacroCopyright © 2018. All rights reserved.