Package org.drools.base.rule
Class ImportDeclaration
java.lang.Object
org.drools.base.rule.ImportDeclaration
- All Implemented Interfaces:
Externalizable,Serializable
A class to represent an import declaration.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty import declarationImportDeclaration(String target) Creates an import declaration for the given target. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanReturns true if this ImportDeclaration correctly matches to the given clazzvoidvoidvoid
-
Constructor Details
-
ImportDeclaration
public ImportDeclaration()Creates an empty import declaration -
ImportDeclaration
Creates an import declaration for the given target.- Parameters:
target-
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getTarget
-
setTarget
-
hashCode
public int hashCode() -
equals
-
matches
Returns true if this ImportDeclaration correctly matches to the given clazz- Parameters:
name-- Returns:
-