Class WeaveMessage
java.lang.Object
org.aspectj.bridge.Message
org.aspectj.bridge.WeaveMessage
- All Implemented Interfaces:
IMessage
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface IMessage
IMessage.Kind -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface IMessage
ABORT, DEBUG, ERROR, FAIL, INFO, KINDS, RA_IMessage, TASKTAG, USAGE, WARNING, WEAVEINFOModifier and TypeFieldDescriptionstatic final IMessage.Kindstatic final IMessage.Kindstatic final IMessage.Kindstatic final IMessage.Kindstatic final IMessage.Kindstatic final List<IMessage.Kind> list of Kind in precedence order.static final IMessage[]no messagesstatic final IMessage.Kindstatic final IMessage.Kindstatic final IMessage.Kindstatic final IMessage.Kind -
Method Summary
Modifier and TypeMethodDescriptionstatic WeaveMessageconstructWeavingMessage(WeaveMessage.WeaveMessageKind kind, String[] inserts) Static helper method for constructing weaving messages.static WeaveMessageconstructWeavingMessage(WeaveMessage.WeaveMessageKind kind, String[] inserts, String affectedTypeName, String aspectName, ISourceLocation affectedTypeLocation, ISourceLocation aspectLocation) Static helper method for constructing weaving messages.Methods inherited from class Message
getDeclared, getDetails, getExtraSourceLocations, getID, getKind, getMessage, getSourceEnd, getSourceLocation, getSourceStart, getThrown, isAbort, isDebug, isError, isFailed, isInfo, isTaskTag, isUsage, isWarning, toStringModifier and TypeMethodDescriptionbooleanCaller can verify if this message came about because of a DEOWReturn a List ofISourceLocationinstances that indicate additional source locations relevent to this message as specified by the message creator.intgetID()Return the ID of the message where applicable, see IProblem for list of valid IDsgetKind()final StringintReturn the end position of the problem (inclusive), or -1 if unknown.final ISourceLocationintReturn the start position of the problem (inclusive), or -1 if unknown.final ThrowablebooleanisAbort()booleanisDebug()booleanisError()booleanisFailed()booleanisInfo()booleanbooleanisUsage()booleantoString()
-
Field Details
-
WEAVEMESSAGE_DECLAREPARENTSIMPLEMENTS
-
WEAVEMESSAGE_ITD
-
WEAVEMESSAGE_ADVISES
-
WEAVEMESSAGE_DECLAREPARENTSEXTENDS
-
WEAVEMESSAGE_SOFTENS
-
WEAVEMESSAGE_ANNOTATES
-
WEAVEMESSAGE_MIXIN
-
WEAVEMESSAGE_REMOVES_ANNOTATION
-
-
Method Details
-
constructWeavingMessage
public static WeaveMessage constructWeavingMessage(WeaveMessage.WeaveMessageKind kind, String[] inserts) Static helper method for constructing weaving messages.- Parameters:
kind- what kind of message (e.g. declare parents)inserts- inserts for the message (inserts are marked %n in the message)- Returns:
- new weaving message
-
constructWeavingMessage
public static WeaveMessage constructWeavingMessage(WeaveMessage.WeaveMessageKind kind, String[] inserts, String affectedTypeName, String aspectName, ISourceLocation affectedTypeLocation, ISourceLocation aspectLocation) Static helper method for constructing weaving messages.- Parameters:
kind- what kind of message (e.g. declare parents)inserts- inserts for the message (inserts are marked %n in the message)affectedTypeName- the type which is being advised/declaredUponaspectName- the aspect that defined the advice or declaresaffectedTypeLocation- the source location of the advised/declaredUpon typeaspectLocation- the source location of the declaring/defining advice/declare- Returns:
- new weaving message
-
getAspectName
- Returns:
- Returns the aspectname.
-
getAffectedTypeName
- Returns:
- Returns the affectedtypename.
-