Package org.drools.base.rule
Class ImportDeclaration
- java.lang.Object
-
- org.drools.base.rule.ImportDeclaration
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable
public class ImportDeclaration extends java.lang.Object implements java.io.ExternalizableA class to represent an import declaration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImportDeclaration()Creates an empty import declarationImportDeclaration(java.lang.String target)Creates an import declaration for the given target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetTarget()inthashCode()booleanmatches(java.lang.Class<?> clazz)Returns true if this ImportDeclaration correctly matches to the given clazzvoidreadExternal(java.io.ObjectInput in)voidsetTarget(java.lang.String target)voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getTarget
public java.lang.String getTarget()
-
setTarget
public void setTarget(java.lang.String target)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
matches
public boolean matches(java.lang.Class<?> clazz)
Returns true if this ImportDeclaration correctly matches to the given clazz- Parameters:
name-- Returns:
-
-