public abstract class MacroBase extends Macro
Constructor and Description |
---|
MacroBase(java.lang.String name,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
Result |
calculateQuickResult(Expression [] params,
ExpressionContext context) |
Result |
calculateResult(Expression [] params,
ExpressionContext context) |
protected abstract Result |
calculateResult(Expression [] params,
ExpressionContext context,
boolean quick) |
java.lang.String |
getDefaultValue() |
java.lang.String |
getName() |
java.lang.String |
getPresentableName() |
static java.lang.String |
getTextResult(Expression [] params,
ExpressionContext context) |
static java.lang.String |
getTextResult(Expression [] params,
ExpressionContext context,
boolean useSelection) |
calculateLookupItems, getLookupFocusDegree, isAcceptableInContext
protected abstract Result calculateResult(Expression [] params, ExpressionContext context, boolean quick)
public Result calculateResult(Expression [] params, ExpressionContext context)
calculateResult
in class Macro
public Result calculateQuickResult(Expression [] params, ExpressionContext context)
calculateQuickResult
in class Macro
public java.lang.String getPresentableName()
getPresentableName
in class Macro
public java.lang.String getDefaultValue()
getDefaultValue
in class Macro
public static java.lang.String getTextResult(Expression [] params, ExpressionContext context)
public static java.lang.String getTextResult(Expression [] params, ExpressionContext context, boolean useSelection)